From 3969bcf07857b1a4af391bbddb924388cc7f44bb Mon Sep 17 00:00:00 2001 From: Karroffel Date: Tue, 18 Apr 2017 02:41:39 +0200 Subject: [PATCH] better llvm support --- include/SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/SConstruct b/include/SConstruct index 6ab0c3df..9b860341 100644 --- a/include/SConstruct +++ b/include/SConstruct @@ -17,7 +17,7 @@ target = ARGUMENTS.get("target", "core") platform = ARGUMENTS.get("p", "linux") -godot_name = "godot." + platform + ".tools.64" +godot_name = "godot." + ("x11" if platform == "linux" else platform) + ".tools.64" def add_sources(sources, directory): @@ -49,11 +49,16 @@ elif target == "bindings": if ARGUMENTS.get("generate_bindings", "no") == "yes": godot_executable = godot_bin_path + godot_name + + if env["CXX"] == "clang++": + godot_executable += ".llvm" + if platform == "windows": godot_executable += ".exe" # TODO Generating the API should be done only if the Godot build is more recent than the JSON file json_api_file = 'godot_api.json' + subprocess.call([godot_executable, '--gdnative-generate-json-api', json_api_file]) binding_generator_executable = '../binding_generator/target/debug/binding_generator'