summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn7
-rw-r--r--build_extra/flatbuffers/BUILD.gn3
2 files changed, 10 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 038e70430..50346dfed 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -34,6 +34,13 @@ config("deno_config") {
if (is_win) {
libs = [ "userenv.lib" ]
}
+
+ if (is_clang) {
+ cflags = [
+ "-fcolor-diagnostics",
+ "-fansi-escape-codes",
+ ]
+ }
}
main_extern = [
diff --git a/build_extra/flatbuffers/BUILD.gn b/build_extra/flatbuffers/BUILD.gn
index aaf82422c..b56731935 100644
--- a/build_extra/flatbuffers/BUILD.gn
+++ b/build_extra/flatbuffers/BUILD.gn
@@ -17,6 +17,9 @@ config("flatbuffers_config") {
# TODO: rust branch of flatbuffers has this warning.
# This should be removed when the branch fixed.
"-Wno-return-type",
+
+ "-fcolor-diagnostics",
+ "-fansi-escape-codes",
]
}
}