diff options
-rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index c899de0..97ed23c 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1311,7 +1311,7 @@ class Environment: m = 'Failed to detect MSVC compiler version: stderr was\n{!r}' raise EnvironmentException(m.format(err)) cl_signature = lookat.split('\n')[0] - match = re.search('.*(x86|x64|ARM|ARM64)( |$)', cl_signature) + match = re.search(r'.*(x86|x64|ARM|ARM64)([^_A-Za-z0-9]|$)', cl_signature) if match: target = match.group(1) else: |