diff options
author | armvixl <vixl@arm.com> | 2016-05-10 13:57:58 +0100 |
---|---|---|
committer | Jacob Bramley <jacob.bramley@arm.com> | 2016-05-13 15:06:20 +0100 |
commit | 0f35e36b7f5d1d2f4d95989b418447e1a4bcc8cd (patch) | |
tree | b74b5772c27cf650d7fd4bda0d2378515194b046 /SConstruct | |
parent | 788c84fd2ce77163c4182fdf20a17c52bcd8d0c3 (diff) | |
download | vixl-0f35e36b7f5d1d2f4d95989b418447e1a4bcc8cd.tar.gz |
VIXL Release 1.13
Refer to the README.md and LICENCE files for details.
Change-Id: I922914f4e7da7cb939a8054cded11feb9ea51a86
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -215,13 +215,17 @@ def ConfigureEnvironmentForCompiler(env): # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57045 # The bug does not seem to appear in GCC 4.7, or in debug builds with GCC 4.8. if env['mode'] == 'release': - process = subprocess.Popen(env['CXX'] + ' --version | grep "g++.*4\.8"', + process = subprocess.Popen(env['CXX'] + ' --version 2>&1 | grep "g++.*4\.8"', shell = True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - stdout, stderr = process.communicate() + stdout, unused = process.communicate() using_gcc48 = stdout != '' if using_gcc48: env.Append(CPPFLAGS = ['-Wno-maybe-uninitialized']) + # On OSX, compilers complain about `long long` being a C++11 extension when no + # standard is passed. + if 'std' not in env or env['std'] == 'c++98': + env.Append(CPPFLAGS = ['-Wno-c++11-long-long']) def ConfigureEnvironment(env): |