summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorMike Seplowitz <mseplowitz@bloomberg.net>2015-01-13 01:47:55 (GMT)
committerMike Seplowitz <mseplowitz@bloomberg.net>2015-08-19 12:42:06 (GMT)
commitda4e98b715c3e7cdf8bcc26f49868772daae7ff5 (patch)
tree6d2d554388dce9517d753709b78480d724c29790 /configure.py
parent40a4808074c2daa0f2f83faf22aa7e8a77f8fb22 (diff)
downloadNinja-da4e98b715c3e7cdf8bcc26f49868772daae7ff5.zip
Ninja-da4e98b715c3e7cdf8bcc26f49868772daae7ff5.tar.gz
Ninja-da4e98b715c3e7cdf8bcc26f49868772daae7ff5.tar.bz2
Start AIX port
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index b8d7096..f9ea8eb 100755
--- a/configure.py
+++ b/configure.py
@@ -58,11 +58,13 @@ class Platform(object):
self._platform = 'bitrig'
elif self._platform.startswith('netbsd'):
self._platform = 'netbsd'
+ elif self._platform.startswith('aix'):
+ self._platform = 'aix'
@staticmethod
def known_platforms():
return ['linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5',
- 'mingw', 'msvc', 'gnukfreebsd', 'bitrig', 'netbsd']
+ 'mingw', 'msvc', 'gnukfreebsd', 'bitrig', 'netbsd', 'aix']
def platform(self):
return self._platform
@@ -89,6 +91,9 @@ class Platform(object):
def is_solaris(self):
return self._platform == 'solaris'
+ def is_aix(self):
+ return self._platform == 'aix'
+
def uses_usr_local(self):
return self._platform in ('freebsd', 'openbsd', 'bitrig')
@@ -96,7 +101,9 @@ class Platform(object):
return self._platform in ('linux', 'openbsd', 'bitrig')
def supports_ninja_browse(self):
- return not self.is_windows() and not self.is_solaris()
+ return (not self.is_windows()
+ and not self.is_solaris()
+ and not self.is_aix())
class Bootstrap:
@@ -345,6 +352,8 @@ if platform.is_mingw():
ldflags.append('-static')
elif platform.is_solaris():
cflags.remove('-fvisibility=hidden')
+elif platform.is_aix():
+ cflags.remove('-fvisibility=hidden')
elif platform.is_msvc():
pass
else: