From d23c129bb0c4ba488bffc3d6ba6be0c5f72358d3 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Tue, 14 Jan 2025 21:59:22 +0800 Subject: [PATCH] mipsel: build: Disable ELF CREL --- src/build/config/compiler/BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index 489dd867fa..121a4675b4 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -630,6 +630,7 @@ config("compiler") { # (excluding toolchains that use an older version of LLVM). # TODO(crbug.com/376278218): This causes segfault on Linux ARM builds. if (is_linux && !llvm_android_mainline && current_cpu != "arm" && + current_cpu != "mipsel" && current_cpu != "mips64el" && default_toolchain != "//build/toolchain/cros:target") { cflags += [ "-Wa,--crel,--allow-experimental-crel" ] }