aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 744d49d..4e2ff92 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -776,7 +776,7 @@ class Environment:
else:
m = 'Failed to detect MSVC compiler version: stderr was\n{!r}'
raise EnvironmentException(m.format(err))
- match = re.search(' for (.*)$', lookat.split('\n')[0])
+ match = re.search('.*(x86|x64|ARM|ARM64).*', lookat.split('\n')[0])
if match:
target = match.group(1)
else: