2017-09-12 19:21:18 +02:00
|
|
|
diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
|
2017-10-20 19:45:20 +02:00
|
|
|
index 7888e2f8589d..2b3e8dff4637 100644
|
2017-09-12 19:21:18 +02:00
|
|
|
--- build/config/compiler/BUILD.gn
|
|
|
|
+++ build/config/compiler/BUILD.gn
|
2017-10-20 19:45:20 +02:00
|
|
|
@@ -398,7 +398,7 @@ config("compiler") {
|
2017-09-12 19:21:18 +02:00
|
|
|
# chromeos binutils has been patched with the fix, so always use icf there.
|
|
|
|
# The bug only affects x86 and x64, so we can still use ICF when targeting
|
|
|
|
# other architectures.
|
|
|
|
- if ((!is_android && linux_use_bundled_binutils) || is_chromeos ||
|
|
|
|
+ if ((!is_android && linux_use_bundled_binutils && current_cpu != "x86") || is_chromeos ||
|
|
|
|
!(current_cpu == "x86" || current_cpu == "x64")) {
|
|
|
|
ldflags += [ "-Wl,--icf=all" ]
|
|
|
|
}
|