Browse Source

Merge pull request #100577 from bruvzg/win_llvm_fix

[Windows, LLVM] Fix `colorize` flag.
Rémi Verschelde 9 tháng trước cách đây
mục cha
commit
fafc07335b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -807,7 +807,7 @@ 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:
+    if env["use_llvm"] and os.name == "nt" and methods._can_color:
         env.Append(CCFLAGS=["$(-fansi-escape-codes$)", "$(-fcolor-diagnostics$)"])
 
     if get_is_ar_thin_supported(env):