From b5258b42c003b7d7bae13ac1e865a1ae4b418e74 Mon Sep 17 00:00:00 2001 From: Alvin Wong Date: Fri, 26 Jul 2024 01:43:17 +0800 Subject: [PATCH] Enable Clang color output on Windows --- platform/windows/detect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/windows/detect.py b/platform/windows/detect.py index a1942fa2c15..f5aaa299757 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -759,6 +759,9 @@ def configure_mingw(env: "SConsEnvironment"): env.Append(CCFLAGS=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=[