From c789efb8c883a719b308e023b82fab4d808ab460 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Mon, 8 Oct 2018 19:39:41 +0100 Subject: Use lld-link with clang-cl Use lld-link dynamic linker with clang-cl Don't hardcode dynamic linker name in tests --- mesonbuild/compilers/c.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers/c.py') 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'] -- cgit v1.1