Skip to content

Commit

Permalink
Merge pull request jcalifornia#27 from RichyHBM/keep-env-windows
Browse files Browse the repository at this point in the history
Keep environment variables on windows
  • Loading branch information
karroffel authored Jul 29, 2017
2 parents e6064f7 + b503db1 commit b523f61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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++"
Expand Down

0 comments on commit b523f61

Please sign in to comment.