aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-07 23:39:59 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-07 23:43:16 +0300
commit365f529c75a6b55278db2ee5749d26a29a56fa83 (patch)
tree777f5a526a9f5753c912bcd73a1204715eab3698 /ninjabackend.py
parentf88779319d61e316bef8e5b3f9241cf2d80b3e6d (diff)
downloadmeson-365f529c75a6b55278db2ee5749d26a29a56fa83.zip
meson-365f529c75a6b55278db2ee5749d26a29a56fa83.tar.gz
meson-365f529c75a6b55278db2ee5749d26a29a56fa83.tar.bz2
Store build flags into coredata as it is persistent and needs to survive over Meson reconfigurations.
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index 5a6418f..c79fc78 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -817,7 +817,7 @@ class NinjaBackend(backends.Backend):
commands += linker.get_linker_always_flags()
commands += linker.get_buildtype_linker_flags(self.environment.coredata.buildtype)
if not(isinstance(target, build.StaticLibrary)):
- commands += self.build.get_external_link_args(linker)
+ commands += self.environment.coredata.external_link_args[linker.get_language()]
if isinstance(target, build.Executable):
commands += linker.get_std_exe_link_flags()
elif isinstance(target, build.SharedLibrary):