| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 30d801789d8a36aeab008f75aeedea2afacebe79..91f40810a826672c7062fc11c551e267711e51c6 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -357,12 +357,13 @@ config("compiler") {
|
| if (is_posix && (use_gold || (use_lld && !is_nacl)) && !using_sanitizer &&
|
| !(is_android && use_order_profiling)) {
|
| # TODO(crbug.com/576197) - gcc on x86 platforms + gold + icf=all
|
| - # doesn't currently work. Once it does, use icf=all everywhere.
|
| + # doesn't currently work on non-chromeos platforms.
|
| # Additionally, on Android x86 --icf=safe seems to cause issues as well.
|
| # Additionally, on cast Android x86, --icf=all causes issues.
|
| if (is_android && current_cpu == "x86") {
|
| ldflags += [ "-Wl,--icf=none" ]
|
| - } else if (is_clang || (current_cpu != "x86" && current_cpu != "x64")) {
|
| + } else if (is_clang || is_chromeos ||
|
| + (current_cpu != "x86" && current_cpu != "x64")) {
|
| ldflags += [ "-Wl,--icf=all" ]
|
| } else if (!is_android) {
|
| ldflags += [ "-Wl,--icf=safe" ]
|
|
|