diff options
author | David Snopek <dsnopek@gmail.com> | 2023-09-09 09:19:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 09:19:38 -0500 |
commit | 80f98de905b3306461adf8dabdca080bd8637263 (patch) | |
tree | 32b9919893598728df4508d15640534723cbee47 /tools/godotcpp.py | |
parent | 5cdc2fc09924444157136880d9c23bfd0af602f9 (diff) | |
parent | 0e5975dd266234ab45acbd88168e8550ea3e4419 (diff) | |
download | redot-cpp-80f98de905b3306461adf8dabdca080bd8637263.tar.gz |
Merge pull request #1237 from DmitriySalnikov/fix-scons-crashes
[SCons] Fixed crashes in several scripts
Diffstat (limited to 'tools/godotcpp.py')
-rw-r--r-- | tools/godotcpp.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/godotcpp.py b/tools/godotcpp.py index 60cd34b..969f8c4 100644 --- a/tools/godotcpp.py +++ b/tools/godotcpp.py @@ -3,6 +3,7 @@ import os, sys, platform from SCons.Variables import EnumVariable, PathVariable, BoolVariable from SCons.Tool import Tool from SCons.Builder import Builder +from SCons.Errors import UserError from binding_generator import scons_generate_bindings, scons_emit_files @@ -226,7 +227,7 @@ def generate(env): env["arch"] = "x86_32" else: print("Unsupported CPU architecture: " + host_machine) - Exit() + env.Exit(1) print("Building for architecture " + env["arch"] + " on platform " + env["platform"]) @@ -284,8 +285,8 @@ def _godot_cpp(env): ) # Forces bindings regeneration. if env["generate_bindings"]: - AlwaysBuild(bindings) - NoCache(bindings) + env.AlwaysBuild(bindings) + env.NoCache(bindings) # Sources to compile sources = [] |