Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6052)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1194823004: clang/win: Make diagnostics colored if ansicon is around at runhooks time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chmod Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | build/win/use_ansi_codes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 466b2b95000a68f3050fbd9f4fc5e657137ed1de..74accae9493c1f841c57dc37333a4cd425c13285 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -130,6 +130,14 @@ config("compiler") {
} else {
cflags += [ "-m64" ]
}
+ if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") ==
+ "True") {
+ cflags += [
+ # cmd.exe doesn't understand ANSI escape codes by default,
+ # so only enable them if something emulating them is around.
+ "-fansi-escape-codes",
+ ]
+ }
}
} else {
# Common GCC compiler flags setup.
« no previous file with comments | « build/common.gypi ('k') | build/win/use_ansi_codes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698