aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-10-23 16:14:40 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-11-04 15:42:06 +0000
commitd35034b21bfdcbdb21853340ff983e908ada101f (patch)
treefd117c606d782b8babef82cdf9a1639fbd3623af /mesonbuild/modules/windows.py
parent198e8691625419b50000c5825209843184dd2441 (diff)
downloadmeson-d35034b21bfdcbdb21853340ff983e908ada101f.zip
meson-d35034b21bfdcbdb21853340ff983e908ada101f.tar.gz
meson-d35034b21bfdcbdb21853340ff983e908ada101f.tar.bz2
Use 'rc' resource compiler with clang-cl toolchain
The LLVM toolchain doesn't come with a Windows resource compiler at the moment. Use 'rc' from the Windows SDK.
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r--mesonbuild/modules/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py
index f0d5113..4d0f244 100644
--- a/mesonbuild/modules/windows.py
+++ b/mesonbuild/modules/windows.py
@@ -60,7 +60,7 @@ class WindowsModule(ExtensionModule):
if not rescomp or not rescomp.found():
comp = self.detect_compiler(state.compilers)
- if comp.id == 'msvc':
+ if comp.id == 'msvc' or comp.id == 'clang-cl':
rescomp = ExternalProgram('rc', silent=True)
else:
rescomp = ExternalProgram('windres', silent=True)