2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

Fixed a local variable shadowing the arch return switch for setup_msvc.

This commit is contained in:
Shawn Hoover 2015-09-02 09:16:48 -04:00
parent b6af6c5919
commit fa41ac8213

View File

@ -121,14 +121,14 @@ def setup_msvc(conf, versions, arch = False):
for target in platforms:
try:
try:
arch,(p1,p2,p3) = targets[target]
realtarget,(p1,p2,p3) = targets[target]
except conf.errors.ConfigurationError:
# lazytup target evaluation errors
del(targets[target])
else:
compiler,revision = version.rsplit(' ', 1)
if arch:
return compiler,revision,p1,p2,p3,arch
return compiler,revision,p1,p2,p3,realtarget
else:
return compiler,revision,p1,p2,p3
except KeyError: continue