BUG: do not call msvs bat file in merge_default_version, only set up version.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:56:55 +0000 (04:56 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:56:55 +0000 (04:56 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4441 fdb21ef1-2011-0410-befe-b5e4ea1792b1

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

index 9b6eb7c5af590c81ea1deeb3512a6735be6f6684..4fda0db633f19b77b3bfc0445da83e70d3911e4c 100644 (file)
@@ -457,10 +457,11 @@ def merge_default_version(env):
     version = get_default_version(env)
     arch = get_default_arch(env)
 
+def msvs_setup_env(env):
+    batfilename = msvs.get_batch_file()
     msvs = get_vs_by_version(version)
     if msvs is None:
         return
-    batfilename = msvs.get_batch_file()
 
     # XXX: I think this is broken. This will silently set a bogus tool instead
     # of failing, but there is no other way with the current scons tool