From 2f79c84ff5cdf88cc360ebbd9f714290522f1b77 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 1 Sep 2017 18:50:59 +0200 Subject: [PATCH] etc: Append -std=gnu++11 to CCFLAGS instead of CXXFLAGS This way it can override the -std flags passed to scons. --- modules/etc/SCsub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/etc/SCsub b/modules/etc/SCsub index f0c1ee64b9e..9c3e703f117 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']: