mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
[SCons] Fixed crashes in several scripts
(cherry picked from commit 0e5975dd26)
This commit is contained in:
committed by
David Snopek
parent
dcd7a69512
commit
dd8e1def67
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user