summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/common.gypi2
-rw-r--r--build/config/compiler/BUILD.gn4
2 files changed, 3 insertions, 3 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 9c30c4e..227e82f 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -665,7 +665,7 @@
'use_lto_o2%': 0,
# Allowed level of identical code folding in the gold linker.
- 'gold_icf_level%': 'safe',
+ 'gold_icf_level%': 'all',
# Libxkbcommon usage.
'use_xkbcommon%': 0,
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index ff20eb6..23515a9 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -423,7 +423,7 @@ config("compiler") {
"-fuse-ld=gold",
# TODO(brettw) common.gypi has this only for target toolset.
- "-Wl,--icf=safe",
+ "-Wl,--icf=all",
# Experimentation found that using four linking threads
# saved ~20% of link time.
@@ -520,7 +520,7 @@ config("compiler") {
if (current_cpu == "arm") {
ldflags += [
# Enable identical code folding to reduce size.
- "-Wl,--icf=safe",
+ "-Wl,--icf=all",
]
}