Skip to content

Instantly share code, notes, and snippets.

@jrmuizel
Created March 3, 2024 20:01
Show Gist options
  • Save jrmuizel/5a3ed17348e53f376aacc0c7ad593ecf to your computer and use it in GitHub Desktop.
Save jrmuizel/5a3ed17348e53f376aacc0c7ad593ecf to your computer and use it in GitHub Desktop.
diff --git a/build/config/compiler/pgo/BUILD.gn b/build/config/compiler/pgo/BUILD.gn
index f8293b2ef03f9..97e985cecc374 100644
--- a/build/config/compiler/pgo/BUILD.gn
+++ b/build/config/compiler/pgo/BUILD.gn
@@ -127,21 +127,21 @@ config("pgo_optimization_flags") {
# and at least some profile data always ends up being considered
# out of date, so make sure we don't error for those cases.
"-Wno-profile-instr-unprofiled",
"-Wno-profile-instr-out-of-date",
# Some hashing conflict results in a lot of warning like this when doing
# a PGO build:
# warning: foo.cc: Function control flow change detected (hash mismatch)
# [-Wbackend-plugin]
# See https://crbug.com/978401
- "-Wno-backend-plugin",
+ #"-Wno-backend-plugin",
]
# Enable basic block layout based on the extended TSP problem. This aims to
# improve icache utilization and reduce the binary size.
if (use_thin_lto) {
if (is_win) {
ldflags = [ "-mllvm:-enable-ext-tsp-block-placement=1" ]
} else {
ldflags = [ "-Wl,-mllvm,-enable-ext-tsp-block-placement=1" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment