diff options
author | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-18 14:44:55 +0300 |
---|---|---|
committer | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-20 22:27:31 +0300 |
commit | fd2c3b4c77ac1977d254301876525f8e631a940a (patch) | |
tree | 6cefc3668b8d4dc3b36c17abd8361c67f63e0859 /mesonbuild/backend/ninjabackend.py | |
parent | b208cbda8163513787f669743f2c8877a330aaf1 (diff) | |
download | meson-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.py | 2 |
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 |