projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
528a0a8
)
scons: Allow to specify the MSVS version on command line.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 23 Jan 2009 16:25:37 +0000
(16:25 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 23 Jan 2009 17:09:51 +0000
(17:09 +0000)
scons/generic.py
patch
|
blob
|
history
diff --git
a/scons/generic.py
b/scons/generic.py
index 0ed21a4e6ce13ed5e3db47ef01860ac3e349dd3e..7ded9207909a2a2eaab8ba95680b9a2cf1d2344c 100644
(file)
--- 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')]