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, get_compiler_version, is_vanilla_clang
|
||||
from methods import print_error, detect_darwin_sdk_path, get_compiler_version, is_vanilla_clang
|
||||
from platform_methods import detect_arch, detect_mvk
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
@@ -64,11 +64,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 macOS. Supported architectures are: %s.'
|
||||
% (env["arch"], ", ".join(supported_arches))
|
||||
)
|
||||
sys.exit()
|
||||
sys.exit(255)
|
||||
|
||||
## Build type
|
||||
|
||||
@@ -254,7 +254,7 @@ def configure(env: "SConsEnvironment"):
|
||||
if mvk_path != "":
|
||||
env.Append(LINKFLAGS=["-L" + mvk_path])
|
||||
else:
|
||||
print(
|
||||
print_error(
|
||||
"MoltenVK SDK installation directory not found, use 'vulkan_sdk_path' SCons parameter to specify SDK path."
|
||||
)
|
||||
sys.exit(255)
|
||||
|
||||
Reference in New Issue
Block a user