Skip to content

Clang: Use -fno-ansi-escape-codes for color diagnostics on Windows

Cristian Adam requested to merge cristianadam/cmake:clang-ansi-color into master

-fno-ansi-escape-codes is used only on Windows by Clang.

Without the flag color diagnostics are displayed only if clang.exe is executed directly. Build tools like ninja and mingw32-make will not display colored diagnostics.

Using -fno-ansi-escape-codes will make the build tools pass the colored diagnostics to the calling application e.g IDE.

Fixes: #24235 (closed)
Backport: release

Edited by Brad King

Merge request reports