aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorGoaLitiuM <goalitium@kapsi.fi>2018-08-18 14:44:55 +0300
committerGoaLitiuM <goalitium@kapsi.fi>2018-08-20 22:27:31 +0300
commitfd2c3b4c77ac1977d254301876525f8e631a940a (patch)
tree6cefc3668b8d4dc3b36c17abd8361c67f63e0859 /mesonbuild/backend/ninjabackend.py
parentb208cbda8163513787f669743f2c8877a330aaf1 (diff)
downloadmeson-fd2c3b4c77ac1977d254301876525f8e631a940a.zip
meson-fd2c3b4c77ac1977d254301876525f8e631a940a.tar.gz
meson-fd2c3b4c77ac1977d254301876525f8e631a940a.tar.bz2
Handle proper linking of MSVC runtime libraries
DMD expects mscrtlib arguments while compiling, whereas LDC2 expects these while linking.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index ace0693..6b2b130 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2374,7 +2374,7 @@ rule FORTRAN_DEP_HACK%s
# options passed on the command-line, in default_options, etc.
# These have the lowest priority.
if not isinstance(target, build.StaticLibrary):
- commands += compilers.get_base_link_args(self.environment.coredata.base_options,
+ commands += compilers.get_base_link_args(self.get_base_options_for_target(target),
linker,
isinstance(target, build.SharedModule))
# Add -nostdlib if needed; can't be overridden