From e5806869c51b8c02c36cc4bc30ae7d59e2c51901 Mon Sep 17 00:00:00 2001 From: Richy HBM Date: Sat, 29 Jul 2017 13:25:57 +0100 Subject: [PATCH] Fix using variable before defining it --- SConstruct | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 44e8a583..286bfd29 100644 --- a/SConstruct +++ b/SConstruct @@ -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() @@ -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"