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. |