mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
SCons: Colorize warnings/errors during generation
This commit is contained in:
parent
6118592c6d
commit
e0e8ce1fc0
20 changed files with 415 additions and 335 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue