Add COMPILER_VERSION to nmake command line

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2012-07-02 02:58:58 +00:00
parent 82cf5d5953
commit 5208671fbb

View File

@ -58,6 +58,15 @@ def getXcodePath():
return getoutput("xcode-select -print-path") return getoutput("xcode-select -print-path")
def getVisCVersion():
text = getoutput("cl.exe")
if 'Version 15' in text:
return '90'
# TODO: Add more tests to get the other versions...
else:
return 'FIXME'
def exitIfError(code, msg): def exitIfError(code, msg):
if code != 0: if code != 0:
print(msg) print(msg)
@ -402,6 +411,7 @@ def main(scriptName, args):
if options.wxpython: if options.wxpython:
args.append("OFFICIAL_BUILD=1") args.append("OFFICIAL_BUILD=1")
args.append("COMPILER_VERSION=%s" % getVisCVersion())
args.append("SHARED=1") args.append("SHARED=1")
args.append("MONOLITHIC=0") args.append("MONOLITHIC=0")
args.append("USE_OPENGL=1") args.append("USE_OPENGL=1")