diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-09-24 12:20:00 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-09-24 13:45:03 -0700 |
commit | d6a97ae4f02a7150165877e304778c96b90ddd5a (patch) | |
tree | c785742c94837f40d98bab0bf4082d48dd00ae9a | |
parent | af3f62eedf38a1455334298d812f8b033567d230 (diff) |
build: always enable clang color output
-rw-r--r-- | BUILD.gn | 7 | ||||
-rw-r--r-- | build_extra/flatbuffers/BUILD.gn | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -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", ] } } |