tp: don't ship actual chain implementations in export_json target
export_json doesn't use any of the filtering logic so simply ship a
dummy chain for it to reduce binary size.
Change-Id: I6391820ee0d40b27f8b97c63a22ced985aad7011
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 1fb8196..c397d5c 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -65,7 +65,10 @@
# Disable variadic macro warning as we make extensive use of them in trace
# processor and client API.
if (is_clang) {
- if (!is_fuzzer) {
+ # Only enable -Weverything on hermetic clang as system clang might be quite
+ # out of date.
+ if (is_hermetic_clang && current_toolchain == host_toolchain &&
+ !is_fuzzer) {
# Disable Weverything on fuzzers to avoid breakages when new versions of
# clang are rolled into OSS-fuzz.
cflags += [ "-Weverything" ]