summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-23 16:25:37 +0000
committerJosé Fonseca <[email protected]>2009-01-23 17:09:51 +0000
commitde29f5781ad9f3630b28f341bb41622a090cd8dc (patch)
tree8af8b4b402c38a41887a89e5b543e0c1fd5abeb2 /scons
parent528a0a885e85907888738cd7b28fff1334697e50 (diff)
scons: Allow to specify the MSVS version on command line.
Diffstat (limited to 'scons')
-rw-r--r--scons/generic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scons/generic.py b/scons/generic.py
index 0ed21a4e6ce..7ded9207909 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -239,6 +239,11 @@ def generate(env):
if env['toolchain'] == 'crossmingw' and env['machine'] not in ('generic', 'x86'):
env['machine'] = 'x86'
+ try:
+ env['MSVS_VERSION'] = ARGUMENTS['MSVS_VERSION']
+ except KeyError:
+ pass
+
# Build type
env['debug'] = _bool_map[ARGUMENTS.get('debug', 'no')]
env['profile'] = _bool_map[ARGUMENTS.get('profile', 'no')]