diff options
author | Jose <jose@zeroc.com> | 2013-11-26 21:55:01 +0100 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-10-27 10:30:08 -0400 |
commit | f30e6b359b4d45327bfeed94869dd5e66105f8ce (patch) | |
tree | 708cf81339a6d7bdd7f1887c7693714d3fe26f7f /scripts/TestUtil.py | |
parent | Changes to support RHEL5 (diff) | |
download | ice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.tar.bz2 ice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.tar.xz ice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.zip |
Visual Studio 2013 support
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index d4d3448b136..6ba67f95425 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -100,7 +100,7 @@ def getCppCompiler(): else: config = open(os.path.join(toplevel, "cpp", "config", "Make.rules.mak"), "r") compiler = re.search("CPP_COMPILER[\t\s]*= ([A-Z0-9]*)", config.read()).group(1) - if compiler != "VC90" and compiler != "VC100" and compiler != "VC110": + if compiler != "VC90" and compiler != "VC100" and compiler != "VC110" and compiler != "VC120": compiler = "" if compiler == "": @@ -115,6 +115,8 @@ def getCppCompiler(): compiler = "VC100" elif l.find("Version 17") != -1: compiler = "VC110" + elif l.find("Version 18") != -1: + compiler = "VC120" else: print("Cannot detect C++ compiler") sys.exit(1) @@ -138,6 +140,12 @@ def isVS2012(): compiler = getCppCompiler() return compiler == "VC110" +def isVS2013(): + if not isWin32(): + return False + compiler = getCppCompiler() + return compiler == "VC120" + # # The PHP interpreter is called "php5" on some platforms (e.g., SLES). # @@ -1431,8 +1439,11 @@ def getCppBinDir(lang = None): if iceHome: if lang == None: lang = getDefaultMapping() - if lang == "cpp" and isVS2012(): + if lang == "cpp": + if isVS2012(): binDir = os.path.join(binDir, "vc110") + elif isVS2013(): + binDir = os.path.join(binDir, "vc120") if x64: if isSolaris(): if isSparc(): |