Skip to content

Commit b523f61

Browse files
authored
Merge pull request #27 from RichyHBM/keep-env-windows
Keep environment variables on windows
2 parents e6064f7 + b503db1 commit b523f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SConstruct

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ godot_bin_path = "../godot_fork/bin/"
99
# for windows
1010
godot_lib_path = "../godot_fork/bin/"
1111

12-
12+
# This makes sure to keep the session environment variables on windows,
13+
# that way you can run scons in a vs 2017 prompt and it will find all the required tools
1314
env = Environment()
15+
if platform == "windows":
16+
env = Environment(ENV = os.environ)
1417

1518
if ARGUMENTS.get("use_llvm", "no") == "yes":
1619
env["CXX"] = "clang++"

0 commit comments

Comments
 (0)