mipsel: build: Disable ELF CREL

pull/810/head
klzgrad 2025-01-14 21:59:22 +08:00
parent 02a82aa8b9
commit 5170924587
1 changed files with 2 additions and 1 deletions

View File

@ -672,7 +672,8 @@ config("compiler") {
# TODO(crbug.com/376278218): This causes segfault on Linux ARM builds.
# It also causes segfault on Linux s390x:
# https://github.com/llvm/llvm-project/issues/149511
if (is_linux && use_lld && current_cpu != "arm" && current_cpu != "s390x") {
if (is_linux && use_lld && current_cpu != "arm" && current_cpu != "s390x" &&
current_cpu != "mipsel" && current_cpu != "mips64el") {
cflags += [ "-Wa,--crel,--allow-experimental-crel" ]
}
}