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", ] } }