summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-09-01 18:50:59 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-09-01 18:51:50 +0200
commit2f79c84ff5cdf88cc360ebbd9f714290522f1b77 (patch)
tree528561ca796fb7aa034e78df03ef416e2a3a1502 /modules
parent6e9e25b41d33745f65910fa077c9049ddccb3445 (diff)
etc: Append -std=gnu++11 to CCFLAGS instead of CXXFLAGS
This way it can override the -std flags passed to scons.
Diffstat (limited to 'modules')
-rw-r--r--modules/etc/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etc/SCsub b/modules/etc/SCsub
index f0c1ee64b9..9c3e703f11 100644
--- a/modules/etc/SCsub
+++ b/modules/etc/SCsub
@@ -34,7 +34,7 @@ env_etc.Append(CPPPATH=[thirdparty_dir])
env_etc.add_source_files(env.modules_sources, "*.cpp")
# upstream uses c++11
-env_etc.Append(CXXFLAGS="-std=gnu++11")
+env_etc.Append(CCFLAGS="-std=gnu++11")
# -ffast-math seems to be incompatible with ec2comp on recent versions of
# GCC and Clang
if '-ffast-math' in env_etc['CCFLAGS']: