You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
change some sys.exit() to be fatal
- when not all freetype deps are builtin (or provided externally) - when attempting to build on an unsupported CPU architecture
This commit is contained in:
@@ -70,7 +70,7 @@ def configure(env: "Environment"):
|
|||||||
'Unsupported CPU architecture "%s" for Linux / *BSD. Supported architectures are: %s.'
|
'Unsupported CPU architecture "%s" for Linux / *BSD. Supported architectures are: %s.'
|
||||||
% (env["arch"], ", ".join(supported_arches))
|
% (env["arch"], ", ".join(supported_arches))
|
||||||
)
|
)
|
||||||
sys.exit()
|
sys.exit(255)
|
||||||
|
|
||||||
## Build type
|
## Build type
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ def configure(env: "Environment"):
|
|||||||
"freetype, libpng, zlib, graphite, harfbuzz.\n"
|
"freetype, libpng, zlib, graphite, harfbuzz.\n"
|
||||||
"Please specify `builtin_<name>=no` for all of them, or none."
|
"Please specify `builtin_<name>=no` for all of them, or none."
|
||||||
)
|
)
|
||||||
sys.exit()
|
sys.exit(255)
|
||||||
|
|
||||||
if not env["builtin_freetype"]:
|
if not env["builtin_freetype"]:
|
||||||
env.ParseConfig("pkg-config freetype2 --cflags --libs")
|
env.ParseConfig("pkg-config freetype2 --cflags --libs")
|
||||||
|
|||||||
Reference in New Issue
Block a user