Append `-std=c++11` flag to the module in SCsub

Scons doesn't seem to support the `SCONS_CXX_STANDARD` environ variable.

Fixes #1
This commit is contained in:
Andrii Doroshenko (Xrayez) 2017-08-30 14:45:26 +03:00
parent a6bd5df8e2
commit 40841f565f
2 changed files with 8 additions and 4 deletions

9
SCsub
View File

@ -1,4 +1,9 @@
Import('env')
env.add_source_files(env.modules_sources,"*.cpp")
env.add_source_files(env.modules_sources,"lib/*.cpp")
module_env = env.Clone()
module_env.add_source_files(env.modules_sources,"*.cpp")
module_env.add_source_files(env.modules_sources,"lib/*.cpp")
# FastNoise uses a few C++11 features
module_env.Append(CPPFLAGS=["-std=c++11"])

View File

@ -5,5 +5,4 @@ def can_build(platform):
def configure(env):
# FastNoise uses a few C++11 features
env.Append(SCONS_CXX_STANDARD="c++11")
pass