[SCons] Fixed crashes in several scripts

(cherry picked from commit 0e5975dd26)
This commit is contained in:
DmitriySalnikov
2023-09-09 11:55:53 +03:00
committed by David Snopek
parent dcd7a69512
commit dd8e1def67
5 changed files with 7 additions and 7 deletions

View File

@@ -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 = []