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

Unified Diff: build/common.gypi

Issue 1880113003: Enable /GL for all targets in Official (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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 | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 3ca0957941fb1ce7db7ae24d2aa79e1d6a16b8c9..02b9e60af7f5948ec8936a4150a2e945c87a14d4 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1380,6 +1380,9 @@
# Experimental setting to optimize Chrome's DLLs with PGO.
'chrome_pgo_phase%': '0',
+ # Experimental setting to build the official builds with full WPO.
+ 'full_wpo_on_official%': '0',
+
# Whether the VS xtree header has been patched to disable warning 4702. If
# it has, then we don't need to disable 4702 (unreachable code warning).
# The patch is preapplied to the internal toolchain and hence all bots.
@@ -5500,6 +5503,12 @@
'Optimization': '1',
# 2, favorSize - Favor small code (/Os)
'FavorSizeOrSpeed': '2',
+ 'conditions': [
+ ['full_wpo_on_official==1', {
+ # This implies link time code generation.
+ 'WholeProgramOptimization': 'true',
+ }],
+ ],
},
},
}],
@@ -5522,6 +5531,12 @@
'Optimization': '2',
# 1, favorSpeed - Favor fast code (/Ot)
'FavorSizeOrSpeed': '1',
+ 'conditions': [
+ ['full_wpo_on_official==1', {
+ # This implies link time code generation.
+ 'WholeProgramOptimization': 'true',
+ }],
+ ],
},
},
}],
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698