From d6a97ae4f02a7150165877e304778c96b90ddd5a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 24 Sep 2018 12:20:00 -0700 Subject: [PATCH] build: always enable clang color output --- BUILD.gn | 7 +++++++ build_extra/flatbuffers/BUILD.gn | 3 +++ 2 files changed, 10 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 038e70430d..50346dfed1 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 aaf82422c5..b56731935e 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", ] } }