From 40841f565fcfe8d95cbb200459d59c7e7831db01 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Wed, 30 Aug 2017 14:45:26 +0300 Subject: [PATCH] Append `-std=c++11` flag to the module in SCsub Scons doesn't seem to support the `SCONS_CXX_STANDARD` environ variable. Fixes #1 --- SCsub | 9 +++++++-- config.py | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/SCsub b/SCsub index 1a323eb..6736037 100644 --- a/SCsub +++ b/SCsub @@ -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"]) diff --git a/config.py b/config.py index d134ab6..6a0b9f1 100644 --- a/config.py +++ b/config.py @@ -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