From b503db171231be1cf67df8f0b739cb8eab6da974 Mon Sep 17 00:00:00 2001 From: Richy HBM Date: Sat, 29 Jul 2017 11:50:05 +0100 Subject: [PATCH] Keep environment variables on windows This ensures that environment variables are kept when on windows meaning you can run it with any version of VS, so long as you are in a VS prompt or have run the vcvars.bat file for your architecture --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 4cc61d00..44e8a583 100644 --- a/SConstruct +++ b/SConstruct @@ -9,8 +9,11 @@ godot_bin_path = "../godot_fork/bin/" # for windows godot_lib_path = "../godot_fork/bin/" - +# This makes sure to keep the session environment variables on windows, +# that way you can run scons in a vs 2017 prompt and it will find all the required tools env = Environment() +if platform == "windows": + env = Environment(ENV = os.environ) if ARGUMENTS.get("use_llvm", "no") == "yes": env["CXX"] = "clang++"