aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-10-27 23:58:41 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-10-27 23:58:41 +0200
commit2984d421b718d3422e2f302643f6016eae5a60ff (patch)
treea3fae5cf671ac9e3e24721a5d691cf4d026aeee8 /compilers.py
parent336771f4442afe2398b64a6f4c4551f76b664596 (diff)
downloadmeson-2984d421b718d3422e2f302643f6016eae5a60ff.zip
meson-2984d421b718d3422e2f302643f6016eae5a60ff.tar.gz
meson-2984d421b718d3422e2f302643f6016eae5a60ff.tar.bz2
Put extra flags at the end because some versions of gcc do not handle -l flags before the source file.
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py
index 06f559e..85b57b3 100644
--- a/compilers.py
+++ b/compilers.py
@@ -318,8 +318,8 @@ int someSymbolHereJustForFun;
def compile(self, code, srcname, extra_args=[]):
commands = self.get_exelist()
- commands += extra_args
commands.append(srcname)
+ commands += extra_args
mlog.debug('Running compile:')
mlog.debug('Command line: ', ' '.join(commands))
mlog.debug('Code:\n', code)