ENH: set up MSVS_VERSION and MSVS dict while setting up msvc as well.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 05:04:55 +0000 (05:04 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 05:04:55 +0000 (05:04 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4453 fdb21ef1-2011-0410-befe-b5e4ea1792b1

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

index ee4ebe64d969127ec15aa7df5fe2ee05dfebbff9..a6c5aaf6212e709b6ede5aa5e6ddd6649534dd75 100644 (file)
@@ -222,7 +222,12 @@ def msvc_setup_env(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))
+
+    # XXX: we set-up both MSVS version for backward
+    # compatibility with the msvs tool
     env['MSVC_VERSION'] = version
+    env['MSVS_VERSION'] = version
+    env['MSVS'] = {}
 
     script = find_batch_file(version)
     if not script: