aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki Van Ness <aki@lethalbit.net>2018-10-16 20:03:09 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-17 10:45:52 +0300
commit3ad99d27695c3018cf2449a2478b346a5b069c95 (patch)
treebc6061298462164178059d48962a15895c5d6abb
parentfaa21d15ae8e8d74d65f016a287312471bb5e9db (diff)
downloadmeson-3ad99d27695c3018cf2449a2478b346a5b069c95.zip
meson-3ad99d27695c3018cf2449a2478b346a5b069c95.tar.gz
meson-3ad99d27695c3018cf2449a2478b346a5b069c95.tar.bz2
Added basic detection for AIX linker (not really a better way)
-rw-r--r--mesonbuild/environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 83a2f40..101d386 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -930,6 +930,8 @@ This is probably wrong, it should always point to the native compiler.''' % evar
return ArLinker(linker)
if p.returncode == 1 and err.startswith('usage'): # OSX
return ArLinker(linker)
+ if p.returncode == 1 and err.startswith('Usage'): # AIX
+ return ArLinker(linker)
self._handle_exceptions(popen_exceptions, linkers, 'linker')
raise EnvironmentException('Unknown static linker "%s"' % ' '.join(linkers))