gn build: color linker errors when using lld

llvm-svn: 369951
This commit is contained in:
Nico Weber 2019-08-26 19:22:41 +00:00
parent d9117e4e84
commit b7046859c7
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ config("compiler_defaults") {
cflags += [ "-O3" ]
}
cflags += [ "-fdiagnostics-color" ]
if (use_lld) {
ldflags += [ "-Wl,--color-diagnostics" ]
}
cflags_cc = [
"-std=c++14",
"-fvisibility-inlines-hidden",