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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2331373006: Enable incremental linking in release component builds (Closed)
Patch Set: Tweak logic and add bug link Created 4 years, 3 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/win/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 7f4578d80b614254fad0d8eb080b9df472e851fa..58d1391db6f5313add347c1e8fdf317a3c7ffc59 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1239,7 +1239,10 @@ if (is_win) {
"/Gw",
]
}
- common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding.
+ common_optimize_on_ldflags = []
+ if (!is_component_build) {
+ common_optimize_on_ldflags += [ "/OPT:ICF" ] # Redundant COMDAT folding.
+ }
if (is_official_build) {
common_optimize_on_ldflags += [
"/OPT:REF", # Remove unreferenced data.
« no previous file with comments | « no previous file | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698