summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2019-07-15 05:14:32 -0400
committerBenoit Foucher <benoit@zeroc.com>2019-07-15 11:14:32 +0200
commit2e60ce8af12b12a8c1aed18c7bea2413016d4004 (patch)
tree4f5f578bb99ea4713cbc1d0e57346b6036c70f10 /scripts/Util.py
parentTest script minor warning fixes (diff)
downloadice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.tar.bz2
ice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.tar.xz
ice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.zip
Port to AIX with g++, xlC_r and xlclang++ (#434)
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 0de250ca3be..4201923e513 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -318,6 +318,13 @@ class AIX(Platform):
def hasOpenSSL(self):
return True
+ def _getLibDir(self, component, process, mapping, current):
+ installDir = component.getInstallDir(mapping, current)
+ return os.path.join(installDir, "lib32" if current.config.buildPlatform == "ppc" else "lib")
+
+ def getDefaultBuildPlatform(self):
+ return "ppc64"
+
class Linux(Platform):
def __init__(self):
@@ -1381,6 +1388,9 @@ class ProcessFromBinDir:
def isFromBinDir(self):
return True
+ def getExe(self, current):
+ return self.exe + "_32" if current.config.buildPlatform == "ppc" else self.exe
+
#
# Executables for processes inheriting this marker class are only provided
# as a Release executble on Windows
@@ -3139,6 +3149,11 @@ class CppMapping(Mapping):
if not isinstance(platform, Darwin):
libPaths.append(self.component.getLibDir(process, self, current))
+ # On AIX we also need to add the lib directory for the TestCommon library
+ # when testing against a binary distribution
+ if isinstance(platform, AIX) and self.component.useBinDist(self, current):
+ libPaths.append(os.path.join(self.path, "lib32" if current.config.buildPlatform == "ppc" else "lib"))
+
#
# Add the test suite library directories to the platform library path environment variable.
#