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
1 changed files with 2 additions and 2 deletions

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