aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-10-08 19:39:41 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-11-04 15:42:06 +0000
commitc789efb8c883a719b308e023b82fab4d808ab460 (patch)
treebf8204f9019d04783b66673a46f60aeede68583c /run_unittests.py
parent2993fc4e8a9dcd78d581277f7100bc68d603fd5d (diff)
downloadmeson-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 'run_unittests.py')
-rwxr-xr-xrun_unittests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 5fbc34c..b780883 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2050,8 +2050,9 @@ int main(int argc, char **argv) {
if extra_args is None:
extra_args = []
if compiler.get_argument_syntax() == 'msvc':
- link_cmd = ['link', '/NOLOGO', '/DLL', '/DEBUG',
- '/IMPLIB:' + impfile, '/OUT:' + outfile, objectfile]
+ link_cmd = compiler.get_linker_exelist() + [
+ '/NOLOGO', '/DLL', '/DEBUG', '/IMPLIB:' + impfile,
+ '/OUT:' + outfile, objectfile]
else:
extra_args += ['-fPIC']
link_cmd = compiler.get_exelist() + ['-shared', '-o', outfile, objectfile]