aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-03-03 13:29:13 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-03-03 13:29:13 +0200
commit7b2caafd493e76f8896b76281fc975eddd703237 (patch)
treef63c87672753e4bf49a3109b0780e538029649d7 /environment.py
parent5d2f6b2a6e0d94145f48521fb07993281b13936d (diff)
downloadmeson-7b2caafd493e76f8896b76281fc975eddd703237.zip
meson-7b2caafd493e76f8896b76281fc975eddd703237.tar.gz
meson-7b2caafd493e76f8896b76281fc975eddd703237.tar.bz2
Can run first test case in OSX.
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 6169475..b757ba4 100755
--- a/environment.py
+++ b/environment.py
@@ -291,6 +291,8 @@ class Environment():
if (out.startswith('cc ') or out.startswith('gcc')) and \
'Free Software Foundation' in out:
return GnuCCompiler(exelist)
+ if 'apple' in out and 'Free Software Foundation' in out:
+ return GnuCCompiler(exelist)
if (out.startswith('clang')):
return ClangCCompiler(exelist)
raise EnvironmentException('Unknown compiler "' + ' '.join(exelist) + '"')