Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1418)

Unified Diff: build/config/compiler/compiler.gni

Issue 1938133002: Enable full WPO for the PGO builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix + GN things. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/compiler.gni
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
index 11735ef2bac7bd12d0f5b484537614f8c2a1c3f7..88ea3d2b0fc1f40866da2785102a49fe880ba317 100644
--- a/build/config/compiler/compiler.gni
+++ b/build/config/compiler/compiler.gni
@@ -20,6 +20,15 @@ declare_args() {
# example, don't omit the frame pointer and leave in symbols.
enable_profiling = false
+ # Specify the current PGO phase, only used for the Windows MSVS build. Here's
+ # the different values that can be used:
+ # 0 : Means that PGO is turned off.
+ # 1 : Used during the PGI (instrumentation) phase.
+ # 2 : Used during the PGO (optimization) phase.
+ #
+ # TODO(sebmarchand): Add support for the PGU (update) phase.
+ chrome_pgo_phase = 0
+
# Whether or not the official builds should be build with full WPO.
full_wpo_on_official = false
}
@@ -47,3 +56,8 @@ if (symbol_level == -1) {
symbol_level = 0
}
}
+
+# PGO requires full WPO.
+if (chrome_pgo_phase > 0) {
+ full_wpo_on_official = true
+}
« no previous file with comments | « build/common.gypi ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698