Skip to content

Commit b0ba9e2

Browse files
committed
Fix segfault on ARM by ELF CREL
1 parent a323384 commit b0ba9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/config/compiler/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ config("compiler") {
628628

629629
# Enable ELF CREL (see crbug.com/357878242) for all platforms that use ELF
630630
# (excluding toolchains that use an older version of LLVM).
631-
if (is_linux && !llvm_android_mainline &&
631+
if (is_linux && !llvm_android_mainline && current_cpu != "arm" &&
632632
current_cpu != "mipsel" && current_cpu != "mips64el" &&
633633
default_toolchain != "//build/toolchain/cros:target") {
634634
cflags += [ "-Wa,--crel,--allow-experimental-crel" ]

0 commit comments

Comments
 (0)