Disable DCHECKs in bazel builds

If external bazel projects define DCHECK_ALWAYS_ON it leads to
mismatches between Perfetto build (which doesn't enable DCHECKs)
and external code which includes Perfetto tracing macros and enable
DCHECK_ALWAYS_ON leading to linker errors such as:

ld.lld: error: undefined symbol: perfetto::internal::CheckedScope::~CheckedScope()

Bug: 199770786
Bug: 197340286
Test: Compile with bazel to verify DCHECKs are not enabled
Change-Id: I3b26add919e9ca1260f9b208c62e42df3b0f323e
diff --git a/include/perfetto/base/build_configs/bazel/perfetto_build_flags.h b/include/perfetto/base/build_configs/bazel/perfetto_build_flags.h
index d448829..e08a103 100644
--- a/include/perfetto/base/build_configs/bazel/perfetto_build_flags.h
+++ b/include/perfetto/base/build_configs/bazel/perfetto_build_flags.h
@@ -31,7 +31,7 @@
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_FORCE_DLOG_ON() (0)
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_FORCE_DLOG_OFF() (0)
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_FORCE_DCHECK_ON() (0)
-#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_FORCE_DCHECK_OFF() (0)
+#define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_FORCE_DCHECK_OFF() (1)
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_VERBOSE_LOGS() (1)
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_VERSION_GEN() (1)
 #define PERFETTO_BUILDFLAG_DEFINE_PERFETTO_TP_PERCENTILE() (1)
diff --git a/tools/gen_bazel b/tools/gen_bazel
index 61396cc..9257d75 100755
--- a/tools/gen_bazel
+++ b/tools/gen_bazel
@@ -45,6 +45,7 @@
     'target_os="linux"',
     'enable_perfetto_heapprofd=false',
     'enable_perfetto_traced_perf=false',
+    'perfetto_force_dcheck="off"',
 ])
 
 # Default targets to translate to the blueprint file.