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/compilers/compilers.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/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 9acb93c..47c222d 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -459,6 +459,15 @@ def get_base_link_args(options, linker, is_shared_module): elif as_needed: # -Wl,-dead_strip_dylibs is incompatible with bitcode args.append(linker.get_asneeded_args()) + try: + crt_val = options['b_vscrt'].value + buildtype = options['buildtype'].value + try: + args += linker.get_crt_link_args(crt_val, buildtype) + except AttributeError: + pass + except KeyError: + pass return args class CrossNoRunException(MesonException): |