summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-03-09 09:56:50 +0100
committerOmar Polo <op@omarpolo.com>2023-03-09 14:30:45 +0100
commitac04a0761ebdb8c7754d09a3b687900f8b5c0009 (patch)
tree748286c3e51cbe831e15e6e0586f85a11abdc1b2 /platform/linuxbsd/detect.py
parent9b9bb418cb1137e69b5131ec9fa7b41c0396db28 (diff)
downloadredot-engine-ac04a0761ebdb8c7754d09a3b687900f8b5c0009.tar.gz
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
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index e203dca005..549319a750 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -70,7 +70,7 @@ def configure(env: "Environment"):
'Unsupported CPU architecture "%s" for Linux / *BSD. Supported architectures are: %s.'
% (env["arch"], ", ".join(supported_arches))
)
- sys.exit()
+ sys.exit(255)
## Build type
@@ -208,7 +208,7 @@ def configure(env: "Environment"):
"freetype, libpng, zlib, graphite, harfbuzz.\n"
"Please specify `builtin_<name>=no` for all of them, or none."
)
- sys.exit()
+ sys.exit(255)
if not env["builtin_freetype"]:
env.ParseConfig("pkg-config freetype2 --cflags --libs")