SCons: Improve colored output

This commit is contained in:
Thaddeus Crews 2024-06-22 09:42:30 -05:00
parent a372214a4a
commit d8761f2c79
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
12 changed files with 150 additions and 255 deletions

View file

@ -3,7 +3,7 @@ import platform
import sys
from typing import TYPE_CHECKING
from methods import get_compiler_version, print_error, print_warning, using_gcc
from methods import get_compiler_version, print_error, print_info, print_warning, using_gcc
from platform_methods import detect_arch, validate_arch
if TYPE_CHECKING:
@ -492,7 +492,7 @@ def configure(env: "SConsEnvironment"):
else:
# The default crash handler depends on glibc, so if the host uses
# a different libc (BSD libc, musl), libexecinfo is required.
print("Note: Using `execinfo=no` disables the crash handler on platforms where glibc is missing.")
print_info("Using `execinfo=no` disables the crash handler on platforms where glibc is missing.")
else:
env.Append(CPPDEFINES=["CRASH_HANDLER_ENABLED"])