From 1d9f68b2e274e4776074a69d6f0907c7d09d3a8e Mon Sep 17 00:00:00 2001 From: cournape Date: Mon, 23 Nov 2009 07:43:58 +0000 Subject: [PATCH] REF: query host/target arch only when using bat file. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4470 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 108b781e..79567971 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -260,8 +260,6 @@ def msvc_setup_env(env): "compilers most likely not set correctly" SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, warn_msg) return None - - host_platform, target_platform = get_host_target(env) debug('msvc_setup_env: using specified MSVC version %s\n' % repr(version)) # XXX: we set-up both MSVS version for backward @@ -286,6 +284,7 @@ def msvc_setup_env(env): debug('use_script 1 %s\n' % repr(use_script)) d = script_env(use_script) elif use_script: + host_platform, target_platform = get_host_target(env) host_target = (host_platform, target_platform) arg = _HOST_TARGET_ARCH_TO_BAT_ARCH[host_target] debug('use_script 2 %s, args:%s\n' % (repr(script), arg)) -- 2.26.2