ENH: move user info gathering at the top of msvc_setup_env.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:54:08 +0000 (04:54 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:54:08 +0000 (04:54 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4437 fdb21ef1-2011-0410-befe-b5e4ea1792b1

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

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