Skip to content

Commit

Permalink
Merge pull request jcalifornia#28 from RichyHBM/keep-env-windows
Browse files Browse the repository at this point in the history
Fix using variable before defining it
  • Loading branch information
karroffel authored Jul 29, 2017
2 parents b523f61 + e580686 commit 501a308
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ godot_bin_path = "../godot_fork/bin/"
# for windows
godot_lib_path = "../godot_fork/bin/"

target = ARGUMENTS.get("target", "debug")
platform = ARGUMENTS.get("p", "linux")

# 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()
Expand All @@ -18,10 +21,6 @@ if platform == "windows":
if ARGUMENTS.get("use_llvm", "no") == "yes":
env["CXX"] = "clang++"

target = ARGUMENTS.get("target", "debug")
platform = ARGUMENTS.get("p", "linux")


godot_name = "godot." + ("x11" if platform == "linux" else platform) + ".tools.64"


Expand Down

0 comments on commit 501a308

Please sign in to comment.