BUG: fix arch argument to pass to batfile.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:54:49 +0000 (04:54 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:54:49 +0000 (04:54 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4438 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc.py

index 815eba7e5a3a3786c317dffbd354e1f5cfe090b7..c5f59361b79b7ba5e8e097390ad7aa3bf61dc49f 100644 (file)
@@ -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()