summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-04-06 11:52:48 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-04-06 11:52:48 +0200
commit195920fe0f6dd625b2fdb7e9dcdcee369d991710 (patch)
treee0ecc2f19a9abfef1800d2c425e8050c671f80a8 /scripts/Util.py
parentFixed ICE-7751 - ice_invoke bug, check for null progress reference (diff)
downloadice-195920fe0f6dd625b2fdb7e9dcdcee369d991710.tar.bz2
ice-195920fe0f6dd625b2fdb7e9dcdcee369d991710.tar.xz
ice-195920fe0f6dd625b2fdb7e9dcdcee369d991710.zip
Minor Util.py/Except.py fixes
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 29b24d78f84..6e10094aea0 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -180,20 +180,22 @@ class Linux(Platform):
return True
def getBinSubDir(self, mapping, process, current):
- if self.linuxId in ["ubuntu", "debian"] and current.config.buildPlatform in self.foreignPlatforms:
- return os.path.join("bin", self.multiArch[current.config.buildPlatform])
+ buildPlatform = current.driver.configs[mapping].buildPlatform
+ if self.linuxId in ["ubuntu", "debian"] and buildPlatform in self.foreignPlatforms:
+ return os.path.join("bin", self.multiArch[buildPlatform])
return "bin"
def getLibSubDir(self, mapping, process, current):
+ buildPlatform = current.driver.configs[mapping].buildPlatform
# PHP module is always installed in the lib directory for the default build platform
- if isinstance(mapping, PhpMapping) and current.config.buildPlatform == self.getDefaultBuildPlatform():
+ if isinstance(mapping, PhpMapping) and buildPlatform == self.getDefaultBuildPlatform():
return "lib"
if self.linuxId in ["centos", "rhel", "fedora"]:
- return "lib64" if current.config.buildPlatform == "x64" else "lib"
+ return "lib64" if buildPlatform == "x64" else "lib"
elif self.linuxId in ["ubuntu", "debian"]:
- return os.path.join("lib", self.multiArch[current.config.buildPlatform])
+ return os.path.join("lib", self.multiArch[buildPlatform])
return "lib"
def getBuildSubDir(self, name, current):
@@ -264,8 +266,8 @@ class Windows(Platform):
#
# Platform/Config taget bin directories.
#
- platform = current.config.buildPlatform
- config = "Debug" if current.config.buildConfig.find("Debug") >= 0 else "Release"
+ platform = current.driver.configs[mapping].buildPlatform
+ config = "Debug" if current.driver.configs[mapping].buildConfig.find("Debug") >= 0 else "Release"
if current.driver.useIceBinDist(mapping):
v140 = self.getCompiler() == "v140"
@@ -314,7 +316,7 @@ class Windows(Platform):
with open(os.path.join(toplevel, "config", "icebuilder.props"), "r") as configFile:
version = re.search("<IceJSONVersion>(.*)</IceJSONVersion>", configFile.read()).group(1)
- comp = self.getCompiler() if isinstance(mapping, CppMapping) else "net"
+ comp = self.getCompiler() if isinstance(mapping, CppMapping) else "net"
v140 = self.getCompiler() == "v140"
cpp = isinstance(mapping, CppMapping)