From 58c6b13c4e970223eae09fd88992d32cb1624ba9 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 7 Sep 2024 17:04:55 +0200 Subject: Fix check for 32-bit clang-cl --- mesonbuild/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3