summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <vid512@gmail.com>2024-09-07 17:04:55 +0200
committerEli Schwartz <eschwartz93@gmail.com>2024-09-08 22:48:14 -0400
commit58c6b13c4e970223eae09fd88992d32cb1624ba9 (patch)
treea451c1403bf513ab255c0e2eb6ce22ace3cbdc07
parent53e11488d9ce01b14c2b280d66c3efeda1c60abc (diff)
downloadmeson-58c6b13c4e970223eae09fd88992d32cb1624ba9.tar.gz
Fix check for 32-bit clang-cl
-rw-r--r--mesonbuild/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index fce295dbc..5cff86bb1 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -309,7 +309,7 @@ def detect_windows_arch(compilers: CompilersDict) -> str:
for compiler in compilers.values():
if compiler.id == 'msvc' and (compiler.target in {'x86', '80x86'}):
return 'x86'
- if compiler.id == 'clang-cl' and compiler.target == 'x86':
+ if compiler.id == 'clang-cl' and (compiler.target in {'x86', 'i686'}):
return 'x86'
if compiler.id == 'gcc' and compiler.has_builtin_define('__i386__'):
return 'x86'