From ae80fb177e0edf4c4a1371f2da4abc34a2c96d70 Mon Sep 17 00:00:00 2001 From: cournape Date: Thu, 19 Nov 2009 04:54:49 +0000 Subject: [PATCH] BUG: fix arch argument to pass to batfile. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4438 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 815eba7e..c5f59361 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() -- 2.26.2