diff --git a/patches/trivalent/fixes/152-fixes.patch b/patches/trivalent/fixes/152-fixes.patch new file mode 100644 index 00000000..cf6e6482 --- /dev/null +++ b/patches/trivalent/fixes/152-fixes.patch @@ -0,0 +1,40 @@ +diff --git a/components/cbor/BUILD.gn b/components/cbor/BUILD.gn +index 91fbfffd3c..f8f8a4c01f 100644 +--- a/components/cbor/BUILD.gn ++++ b/components/cbor/BUILD.gn +@@ -12,7 +12,7 @@ buildflag_header("buildflags") { + # TODO(crbug.com/535682335): Remove `USE_CBOR_RUST` buildflag entirely, + # unconditionally enable Rust CBOR parser, and drop `is_cronet_build` check + # once Cronet supports Crubit dependencies. +- flags = [ "USE_CBOR_RUST=!$is_cronet_build" ] ++ flags = [ "USE_CBOR_RUST=false" ] + } + + component("cbor") { +@@ -36,13 +36,6 @@ component("cbor") { + ":buildflags", + "//base", + ] +- +- if (!is_cronet_build) { +- public_deps = [ +- "//build/rust/crubit", +- "//components/cbor/rust:cbor_rust_bindings", +- ] +- } + } + + source_set("unit_tests") { +diff --git a/third_party/dawn/src/utils/BUILD.gn b/third_party/dawn/src/utils/BUILD.gn +index b9f0be693..ed7ad3b6d 100644 +--- a/third_party/dawn/src/utils/BUILD.gn ++++ b/third_party/dawn/src/utils/BUILD.gn +@@ -218,8 +218,6 @@ config("dawn_warnings") { + # the analysis pass. + "-Wno-lifetime-safety", + "-Wno-lifetime-safety-all", +- "-Xclang=-fno-lifetime-safety-inference", +- "-Xclang=-fno-experimental-lifetime-safety-tu-analysis", + ] + + # P3. Checks that could be nice but probably don't help with hardening.