| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 5961d2fbdb91d768b5bed0fe3cb08c9ddbd1d938..dcfa73380928b3ef3b6d7847c8746ef6c75fb84d 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -400,7 +400,10 @@ config("compiler") {
|
| # merged. See also https://crbug.com/663886
|
| # `linux_use_bundled_binutils` is to avoid breaking Linux distros which may
|
| # still have a buggy gold.
|
| - if (!is_android && linux_use_bundled_binutils) {
|
| + # The bug only affects x86 and x64, so we can still use ICF when targeting
|
| + # other architectures.
|
| + if ((!is_android && linux_use_bundled_binutils) ||
|
| + !(current_cpu == "x86" || current_cpu == "x64")) {
|
| ldflags += [ "-Wl,--icf=all" ]
|
| }
|
| }
|
|
|