Improve regular expression for MSVC compiler target arch detection
Did not work for some MSVC output language combinations. Now should work for every locale / output language. Fixes issue #6757
This commit is contained in:
parent
912d7b7eea
commit
1bd1f98086
|
@ -1063,7 +1063,7 @@ class Environment:
|
||||||
m = 'Failed to detect MSVC compiler version: stderr was\n{!r}'
|
m = 'Failed to detect MSVC compiler version: stderr was\n{!r}'
|
||||||
raise EnvironmentException(m.format(err))
|
raise EnvironmentException(m.format(err))
|
||||||
cl_signature = lookat.split('\n')[0]
|
cl_signature = lookat.split('\n')[0]
|
||||||
match = re.search('.*(x86|x64|ARM|ARM64)$', cl_signature)
|
match = re.search('.*(x86|x64|ARM|ARM64)( |$)', cl_signature)
|
||||||
if match:
|
if match:
|
||||||
target = match.group(1)
|
target = match.group(1)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue