From de29f5781ad9f3630b28f341bb41622a090cd8dc Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 23 Jan 2009 16:25:37 +0000 Subject: scons: Allow to specify the MSVS version on command line. --- scons/generic.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scons') diff --git a/scons/generic.py b/scons/generic.py index 0ed21a4e6c..7ded920790 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')] -- cgit v1.2.3