aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2016-06-15 14:36:10 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2016-09-05 10:42:42 +0000
commitc1253076fe09d5249e4d3275ecde5dd6d0c5b475 (patch)
tree561a39c59288f4e9f36f58c378ca0a5551cfa155 /SConstruct
parent69acb5618ef7c69bbe165d24493d1af0a00bcc4a (diff)
downloadvixl-c1253076fe09d5249e4d3275ecde5dd6d0c5b475.tar.gz
Allow long long immediates when compiling with c++98
This patch disables the `long-long` warning when compiling with `std=c++98`. This is needed to build natively for AArch32. We used to disable the `c++11-long-long` warning especially for OSX. However, this warning is LLVM specific and also equivalent go `long-long`. We should use the latter to be compiler agnostic. Change-Id: I1a1a9da8bc94b66ef1741875bbe9b6e3358a1677
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 2 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index bca8766c..1cb922ba 100644
--- a/SConstruct
+++ b/SConstruct
@@ -274,10 +274,9 @@ def ConfigureEnvironmentForCompiler(env):
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.
+ # When compiling with c++98 (the default), allow long long constants.
if 'std' not in env or env['std'] == 'c++98':
- env.Append(CPPFLAGS = ['-Wno-c++11-long-long'])
+ env.Append(CPPFLAGS = ['-Wno-long-long'])
def ConfigureEnvironment(env):