diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-25 13:03:48 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-25 13:03:48 -0500 |
commit | 17f06f6daeceb300f901507102f383d9e3a7ba5f (patch) | |
tree | e134f16dde88b0ab93587a931912647951728f2c /platform/linuxbsd/detect.py | |
parent | cf313e44929a87a03eea551338e4980b1f502231 (diff) | |
parent | 7aacdaa07110db073777070262aaacb7e8a4a775 (diff) | |
download | redot-engine-17f06f6daeceb300f901507102f383d9e3a7ba5f.tar.gz |
Merge pull request #97555 from dustdfg/platform_methods/extract_validate_arch
Build System: Extract `validate_arch` helper functions
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r-- | platform/linuxbsd/detect.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index a67434527c..2fd573da75 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -4,7 +4,7 @@ import sys from typing import TYPE_CHECKING from methods import get_compiler_version, print_error, print_warning, using_gcc -from platform_methods import detect_arch +from platform_methods import detect_arch, validate_arch if TYPE_CHECKING: from SCons.Script.SConscript import SConsEnvironment @@ -74,12 +74,7 @@ def get_flags(): def configure(env: "SConsEnvironment"): # Validate arch. supported_arches = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc32", "ppc64"] - if env["arch"] not in supported_arches: - print_error( - 'Unsupported CPU architecture "%s" for Linux / *BSD. Supported architectures are: %s.' - % (env["arch"], ", ".join(supported_arches)) - ) - sys.exit(255) + validate_arch(env["arch"], get_name(), supported_arches) ## Build type |