summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorThePrez <jgorzinski@gmail.com>2019-08-09 16:05:12 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2019-08-09 16:05:12 (GMT)
commitbd17f236231a58c44f1f5f09ff925aa666d672b7 (patch)
tree815c964013336e3cf4543e5a0bfe49981f5f96ba /configure.py
parent6d8c19a13f40c05696d6dea3e28f6b99d55f6eaf (diff)
downloadNinja-bd17f236231a58c44f1f5f09ff925aa666d672b7.zip
Ninja-bd17f236231a58c44f1f5f09ff925aa666d672b7.tar.gz
Ninja-bd17f236231a58c44f1f5f09ff925aa666d672b7.tar.bz2
Enable build on IBM i platform (#1630)
* No perfstat for IBM i (OS400) AIX variant * Allow for future IBM i to identify as 'os400'
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 0393cdd..529c0e9 100755
--- a/configure.py
+++ b/configure.py
@@ -60,6 +60,8 @@ class Platform(object):
self._platform = 'netbsd'
elif self._platform.startswith('aix'):
self._platform = 'aix'
+ elif self._platform.startswith('os400'):
+ self._platform = 'os400'
elif self._platform.startswith('dragonfly'):
self._platform = 'dragonfly'
@@ -97,6 +99,9 @@ class Platform(object):
def is_aix(self):
return self._platform == 'aix'
+ def is_os400_pase(self):
+ return self._platform == 'os400' or os.uname().sysname.startswith('OS400')
+
def uses_usr_local(self):
return self._platform in ('freebsd', 'openbsd', 'bitrig', 'dragonfly', 'netbsd')
@@ -536,7 +541,7 @@ if platform.is_msvc():
else:
libs.append('-lninja')
-if platform.is_aix():
+if platform.is_aix() and not platform.is_os400_pase():
libs.append('-lperfstat')
all_targets = []