Merge pull request #1620 from shoover/msvc-fix-arch-variable

Fixed a local variable shadowing the arch return switch for setup_msvc.
This commit is contained in:
ita1024 2015-09-02 20:33:42 +02:00
commit 77a3469214
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