From 7bc23de0231e88972b15753684ead68311b148e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sun, 7 Oct 2012 11:18:38 +0200 Subject: Make it possible to force visual studio version. diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index a5474bf..64cdb63 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -64,10 +64,14 @@ vars.Add(BoolVariable("set_iterator_debug_level", "Set _ITERATOR_DEBUG_LEVEL=0", # Set up default build & configure environment ################################################################################ -env = Environment(ENV = { - 'PATH' : os.environ['PATH'], - 'LD_LIBRARY_PATH' : os.environ.get("LD_LIBRARY_PATH", ""), - }, variables = vars) +env_ENV = { + 'PATH' : os.environ['PATH'], + 'LD_LIBRARY_PATH' : os.environ.get("LD_LIBRARY_PATH", ""), +} +if "MSVC_VERSION" in ARGUMENTS : + env = Environment(ENV = env_ENV, variables = vars, MSVC_VERSION = ARGUMENTS["MSVC_VERSION"]) +else : + env = Environment(ENV = env_ENV, variables = vars) Help(vars.GenerateHelpText(env)) -- cgit v0.10.2-6-g49f6