diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-03 13:29:13 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-03 13:29:13 +0200 |
commit | 7b2caafd493e76f8896b76281fc975eddd703237 (patch) | |
tree | f63c87672753e4bf49a3109b0780e538029649d7 | |
parent | 5d2f6b2a6e0d94145f48521fb07993281b13936d (diff) | |
download | meson-7b2caafd493e76f8896b76281fc975eddd703237.zip meson-7b2caafd493e76f8896b76281fc975eddd703237.tar.gz meson-7b2caafd493e76f8896b76281fc975eddd703237.tar.bz2 |
Can run first test case in OSX.
-rwxr-xr-x | environment.py | 2 | ||||
-rwxr-xr-x | meson_test.py | 2 |
2 files changed, 3 insertions, 1 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) + '"') diff --git a/meson_test.py b/meson_test.py index 98927e4..c33563e 100755 --- a/meson_test.py +++ b/meson_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -tt +#!/usr/bin/env python3 -tt # Copyright 2013 Jussi Pakkanen |