From 8e7ce03a7ee26528433b2125b1f44975a5731eef Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Thu, 19 Nov 2009 05:04:55 +0000 Subject: ENH: set up MSVS_VERSION and MSVS dict while setting up msvc as well. --- src/engine/SCons/Tool/MSCommon/vc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index ee4ebe6..a6c5aaf 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -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: -- cgit v0.12