diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-10-08 19:39:41 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-11-04 15:42:06 +0000 |
commit | c789efb8c883a719b308e023b82fab4d808ab460 (patch) | |
tree | bf8204f9019d04783b66673a46f60aeede68583c /mesonbuild/compilers/c.py | |
parent | 2993fc4e8a9dcd78d581277f7100bc68d603fd5d (diff) | |
download | meson-c789efb8c883a719b308e023b82fab4d808ab460.zip meson-c789efb8c883a719b308e023b82fab4d808ab460.tar.gz meson-c789efb8c883a719b308e023b82fab4d808ab460.tar.bz2 |
Use lld-link with clang-cl
Use lld-link dynamic linker with clang-cl
Don't hardcode dynamic linker name in tests
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index ab62afd..35c71df 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -1345,7 +1345,12 @@ class VisualStudioCCompiler(CCompiler): return [] def get_linker_exelist(self): - return ['link'] # FIXME, should have same path as compiler. + # FIXME, should have same path as compiler. + # FIXME, should be controllable via cross-file. + if self.id == 'clang-cl': + return ['lld-link'] + else: + return ['link'] def get_linker_always_args(self): return ['/nologo'] |