aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-03 16:06:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-03 16:06:06 +0200
commit273e9c73eb630a688f62925463dc8f39c88fd6d0 (patch)
tree18d7023ed6348aa642a649ac51a7dd2d90832d03 /environment.py
parent10bdd11e2ded797af6d953a020f3f6824bdd7604 (diff)
downloadmeson-273e9c73eb630a688f62925463dc8f39c88fd6d0.zip
meson-273e9c73eb630a688f62925463dc8f39c88fd6d0.tar.gz
meson-273e9c73eb630a688f62925463dc8f39c88fd6d0.tar.bz2
All test cases now pass on OSX except for pkg-config.
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/environment.py b/environment.py
index 51000c4..d57d3b1 100755
--- a/environment.py
+++ b/environment.py
@@ -315,6 +315,8 @@ class Environment():
if (out.startswith('c++ ') or out.startswith('g++')) and \
'Free Software Foundation' in out:
return GnuCXXCompiler(exelist)
+ if 'apple' in out and 'Free Software Foundation' in out:
+ return GnuCXXCompiler(exelist)
if out.startswith('clang'):
return ClangCXXCompiler(exelist)
raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"')