You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
SCons: Colorize warnings/errors during generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
from methods import detect_darwin_sdk_path
|
||||
from methods import print_error, detect_darwin_sdk_path
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
@@ -60,11 +60,11 @@ def configure(env: "SConsEnvironment"):
|
||||
# Validate arch.
|
||||
supported_arches = ["x86_64", "arm64"]
|
||||
if env["arch"] not in supported_arches:
|
||||
print(
|
||||
print_error(
|
||||
'Unsupported CPU architecture "%s" for iOS. Supported architectures are: %s.'
|
||||
% (env["arch"], ", ".join(supported_arches))
|
||||
)
|
||||
sys.exit()
|
||||
sys.exit(255)
|
||||
|
||||
## LTO
|
||||
|
||||
@@ -118,7 +118,7 @@ def configure(env: "SConsEnvironment"):
|
||||
|
||||
if env["arch"] == "x86_64":
|
||||
if not env["ios_simulator"]:
|
||||
print("ERROR: Building for iOS with 'arch=x86_64' requires 'ios_simulator=yes'.")
|
||||
print_error("Building for iOS with 'arch=x86_64' requires 'ios_simulator=yes'.")
|
||||
sys.exit(255)
|
||||
|
||||
env["ENV"]["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
|
||||
|
||||
Reference in New Issue
Block a user