diff options
| author | David Cournapeau <cournape@gmail.com> | 2009-11-19 04:54:49 (GMT) |
|---|---|---|
| committer | David Cournapeau <cournape@gmail.com> | 2009-11-19 04:54:49 (GMT) |
| commit | 16aea2206975ac22c984c7abde7124a5033d0464 (patch) | |
| tree | a0867b67c62786e004ace5114bfba747a467f487 /src/engine | |
| parent | 9964f90692e7991b5f6aafa4cae4d3a80c0fe6a4 (diff) | |
| download | SCons-16aea2206975ac22c984c7abde7124a5033d0464.zip SCons-16aea2206975ac22c984c7abde7124a5033d0464.tar.gz SCons-16aea2206975ac22c984c7abde7124a5033d0464.tar.bz2 | |
BUG: fix arch argument to pass to batfile.
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 815eba7..c5f5936 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -337,8 +337,9 @@ def msvc_setup_env(env): # XXX: this is VS 2008 specific, fix this script = os.path.join(msvc.find_vc_dir(), "vcvarsall.bat") - debug('use_script 2 %s, args:%s\n' % (repr(script), target_platform)) - d = script_env(script, args=target_platform) + arch = _TARGET_ARCH_TO_BAT_ARCH[target_platform] + debug('use_script 2 %s, args:%s\n' % (repr(script), arch)) + d = script_env(script, args=arch) else: debug('msvc.get_default_env()\n') d = msvc.get_default_env() |
