diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2016-06-15 14:36:10 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2016-09-05 10:42:42 +0000 |
commit | c1253076fe09d5249e4d3275ecde5dd6d0c5b475 (patch) | |
tree | 561a39c59288f4e9f36f58c378ca0a5551cfa155 /SConstruct | |
parent | 69acb5618ef7c69bbe165d24493d1af0a00bcc4a (diff) | |
download | vixl-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-- | SConstruct | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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): |