mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Build System: Extract validate_arch
helper function
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import methods
|
||||
|
||||
@@ -40,6 +41,15 @@ def detect_arch():
|
||||
return "x86_64"
|
||||
|
||||
|
||||
def validate_arch(arch, platform_name, supported_arches):
|
||||
if arch not in supported_arches:
|
||||
methods.print_error(
|
||||
'Unsupported CPU architecture "%s" for %s. Supported architectures are: %s.'
|
||||
% (arch, platform_name, ", ".join(supported_arches))
|
||||
)
|
||||
sys.exit(255)
|
||||
|
||||
|
||||
def get_build_version(short):
|
||||
import version
|
||||
|
||||
|
Reference in New Issue
Block a user