Enable Clang color output on Windows

This commit is contained in:
Alvin Wong 2024-07-26 01:43:17 +08:00
parent e9b6c1baf8
commit b5258b42c0
1 changed files with 3 additions and 0 deletions

View File

@ -759,6 +759,9 @@ def configure_mingw(env: "SConsEnvironment"):
env.Append(CCFLAGS=san_flags) env.Append(CCFLAGS=san_flags)
env.Append(LINKFLAGS=san_flags) env.Append(LINKFLAGS=san_flags)
if env["use_llvm"] and os.name == "nt" and methods._colorize:
env.Append(CCFLAGS=["$(-fansi-escape-codes$)", "$(-fcolor-diagnostics$)"])
env.Append(CPPDEFINES=["WINDOWS_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"]) env.Append(CPPDEFINES=["WINDOWS_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"])
env.Append( env.Append(
CPPDEFINES=[ CPPDEFINES=[