From: cournape Date: Thu, 19 Nov 2009 04:54:08 +0000 (+0000) Subject: ENH: move user info gathering at the top of msvc_setup_env. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7be7ab5385be2a27fcea46b38edf10cdefac1e7;p=scons.git ENH: move user info gathering at the top of msvc_setup_env. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4437 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 4facb53f..815eba7e 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -318,17 +318,17 @@ def msvc_setup_env(env): debug('msvc_setup_env()') version = get_default_version(env) + host_platform, target_platform = get_host_target(env) + debug('msvc_setup_env: using specified MSVC version %s\n' % repr(version)) env['MSVC_VERSION'] = version msvc = InstalledVCMap.get(version) - debug('msvc_setup_env: using specified MSVC version %s\n' % repr(version)) if not msvc: msg = 'VC version %s not installed' % version debug('msv %s\n' % repr(msg)) SCons.Warnings.warn(SCons.Warnings.VisualCMissingWarning, msg) return None - host_platform, target_platform = get_host_target(env) use_script = env.get('MSVC_USE_SCRIPT', True) if SCons.Util.is_String(use_script): debug('use_script 1 %s\n' % repr(use_script))