diff options
| author | L. E. Segovia <amy@amyspark.me> | 2023-06-13 19:35:49 -0300 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2023-06-15 11:56:21 -0700 |
| commit | 6b2427a0310c95d8856600a0c5f05133a61b9e43 (patch) | |
| tree | de660a7a4c521572deeea8b214c8365db4b65257 /mesonbuild/modules/windows.py | |
| parent | 5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219 (diff) | |
| download | meson-6b2427a0310c95d8856600a0c5f05133a61b9e43.tar.gz | |
windows: Fix windres detection for Microsoft shipped Clang
Clang, clang-cl, and MSVC all rely on RC.EXE to build resource files.
Fixes #11845
Diffstat (limited to 'mesonbuild/modules/windows.py')
| -rw-r--r-- | mesonbuild/modules/windows.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index ed1bef1d5..2056c0ae4 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -86,7 +86,8 @@ class WindowsModule(ExtensionModule): if not rescomp or not rescomp.found(): comp = self.detect_compiler(state.environment.coredata.compilers[for_machine]) - if comp.id in {'msvc', 'clang-cl', 'intel-cl'}: + if comp.id in {'msvc', 'clang-cl', 'intel-cl'} or (comp.linker and comp.linker.id in {'link', 'lld-link'}): + # Microsoft compilers uses rc irrespective of the frontend rescomp = ExternalProgram('rc', silent=True) else: rescomp = ExternalProgram('windres', silent=True) |
