environment: Fix detection of Microsoft cl.exe with non English locales

This uses the fix as suggested in issue 5491, which it also fixes.

Fixes #5491
pull/5525/head
Dylan Baker 5 years ago committed by Jussi Pakkanen
parent 1df2f5e9da
commit b972ee7125
  1. 2
      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:

Loading…
Cancel
Save