etc: Append -std=gnu++11 to CCFLAGS instead of CXXFLAGS
This way it can override the -std flags passed to scons.
This commit is contained in:
parent
6e9e25b41d
commit
2f79c84ff5
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ env_etc.Append(CPPPATH=[thirdparty_dir])
|
||||||
env_etc.add_source_files(env.modules_sources, "*.cpp")
|
env_etc.add_source_files(env.modules_sources, "*.cpp")
|
||||||
|
|
||||||
# upstream uses c++11
|
# 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
|
# -ffast-math seems to be incompatible with ec2comp on recent versions of
|
||||||
# GCC and Clang
|
# GCC and Clang
|
||||||
if '-ffast-math' in env_etc['CCFLAGS']:
|
if '-ffast-math' in env_etc['CCFLAGS']:
|
||||||
|
|
Loading…
Reference in a new issue