aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2023-08-24 13:24:18 -0300
committerL. E. Segovia <amy@amyspark.me>2024-02-25 10:48:45 -0300
commit3366756c0f959a5811f27d613f76d9371715c86a (patch)
treeefc9efe0b78a1f29c6199a7fb4cbf7bd60bebbf1 /mesonbuild/linkers
parenta33c599f783d963ad2b04eb9bda76bdd38ad9234 (diff)
downloadmeson-3366756c0f959a5811f27d613f76d9371715c86a.zip
meson-3366756c0f959a5811f27d613f76d9371715c86a.tar.gz
meson-3366756c0f959a5811f27d613f76d9371715c86a.tar.bz2
compilers: Forward Meson's preference of lld-link to clang-cl
The latter prefers LINK.exe by default, which rejects GNU-like linker flags.
Diffstat (limited to 'mesonbuild/linkers')
-rw-r--r--mesonbuild/linkers/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/linkers/detect.py b/mesonbuild/linkers/detect.py
index 1bce413..bb391d1 100644
--- a/mesonbuild/linkers/detect.py
+++ b/mesonbuild/linkers/detect.py
@@ -55,6 +55,9 @@ def guess_win_linker(env: 'Environment', compiler: T.List[str], comp_class: T.Ty
if value is not None:
override = comp_class.use_linker_args(value[0], comp_version)
check_args += override
+ elif 'lld-link' in compiler:
+ override = comp_class.use_linker_args('lld-link', comp_version)
+ check_args += override
if extra_args is not None:
check_args.extend(extra_args)