aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-31 18:11:40 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-31 18:11:40 +0300
commit5efb36caaba279a91fdb15823ff35887bfa1ac82 (patch)
tree78342f133a2654b664e4905c1667061c7e50b41c /environment.py
parent6b56bfd10e36471f2e82499a14237b1ec244d45a (diff)
downloadmeson-5efb36caaba279a91fdb15823ff35887bfa1ac82.zip
meson-5efb36caaba279a91fdb15823ff35887bfa1ac82.tar.gz
meson-5efb36caaba279a91fdb15823ff35887bfa1ac82.tar.bz2
Apparently dynamic linking with C++ had been broken for a while now. Sorry about that.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/environment.py b/environment.py
index 3b0078a..55a2273 100644
--- a/environment.py
+++ b/environment.py
@@ -753,9 +753,10 @@ class GnuCPPCompiler(CPPCompiler):
# may need to separate the latter to extra_debug_flags or something
std_debug_flags = ['-g']
- def __init__(self, exelist, version, is_cross, exe_wrap):
+ def __init__(self, exelist, version, gcc_type, is_cross, exe_wrap):
CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap)
self.id = 'gcc'
+ self.gcc_type = gcc_type
def get_always_flags(self):
return ['-pipe']
@@ -1120,11 +1121,11 @@ class Environment():
version = vmatch.group(0)
else:
version = 'unknown version'
+ if 'apple' in out and 'Free Software Foundation' in out:
+ return GnuCPPCompiler(ccache + [compiler], version, GCC_OSX, is_cross, exe_wrap)
if (out.startswith('c++ ') or 'g++' in out or 'GCC' in out) and \
'Free Software Foundation' in out:
- return GnuCPPCompiler(ccache + [compiler], version, is_cross, exe_wrap)
- if 'apple' in out and 'Free Software Foundation' in out:
- return GnuCPPCompiler(ccache + [compiler], version, is_cross, exe_wrap)
+ return GnuCPPCompiler(ccache + [compiler], version, GCC_STANDARD, is_cross, exe_wrap)
if 'clang' in out:
return ClangCPPCompiler(ccache + [compiler], version, is_cross, exe_wrap)
if 'Microsoft' in out: