mirror of https://gitlab.com/ita1024/waf.git
Fixed a local variable shadowing the arch return switch for setup_msvc.
This commit is contained in:
parent
b6af6c5919
commit
fa41ac8213
|
@ -121,14 +121,14 @@ def setup_msvc(conf, versions, arch = False):
|
||||||
for target in platforms:
|
for target in platforms:
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
arch,(p1,p2,p3) = targets[target]
|
realtarget,(p1,p2,p3) = targets[target]
|
||||||
except conf.errors.ConfigurationError:
|
except conf.errors.ConfigurationError:
|
||||||
# lazytup target evaluation errors
|
# lazytup target evaluation errors
|
||||||
del(targets[target])
|
del(targets[target])
|
||||||
else:
|
else:
|
||||||
compiler,revision = version.rsplit(' ', 1)
|
compiler,revision = version.rsplit(' ', 1)
|
||||||
if arch:
|
if arch:
|
||||||
return compiler,revision,p1,p2,p3,arch
|
return compiler,revision,p1,p2,p3,realtarget
|
||||||
else:
|
else:
|
||||||
return compiler,revision,p1,p2,p3
|
return compiler,revision,p1,p2,p3
|
||||||
except KeyError: continue
|
except KeyError: continue
|
||||||
|
|
Loading…
Reference in New Issue