Skip to content

Commit

Permalink
Revert "mipsel: build: Work around MIPS floating point ABI passing in…
Browse files Browse the repository at this point in the history
… LTO"

This reverts commit e084d0f.
  • Loading branch information
klzgrad committed Oct 7, 2024
1 parent e0adc3c commit 189f7fc
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1334,14 +1334,6 @@ config("compiler_cpu_abi") {
}

cflags += [ "-m${mips_float_abi}-float" ]

# Fix float ABI information not being passed in LLVM bitcode for LTO
# and link failure with -mdouble-float being incorrectly used by default
# while the bitcode was compiled with -msoft-float.
# See https://discourse.llvm.org/t/myterious-soft-float-output-in-lto-cache/70753
if (!is_debug && use_thin_lto && is_a_target_toolchain && mips_float_abi == "soft") {
ldflags += [ "-Wl,-mllvm,-mattr=+soft-float" ]
}
} else if (current_cpu == "mips" && !is_nacl) {
ldflags += [ "-Wl,--hash-style=sysv" ]
if (custom_toolchain == "") {
Expand Down Expand Up @@ -1387,14 +1379,6 @@ config("compiler_cpu_abi") {
}

cflags += [ "-m${mips_float_abi}-float" ]

# Fix float ABI information not being passed in LLVM bitcode for LTO
# and link failure with -mdouble-float being incorrectly used by default
# while the bitcode was compiled with -msoft-float.
# See https://discourse.llvm.org/t/myterious-soft-float-output-in-lto-cache/70753
if (!is_debug && use_thin_lto && is_a_target_toolchain && mips_float_abi == "soft") {
ldflags += [ "-Wl,-mllvm,-mattr=+soft-float" ]
}
} else if (current_cpu == "mips64el") {
cflags += [ "-D__SANE_USERSPACE_TYPES__" ]
ldflags += [ "-Wl,--hash-style=sysv" ]
Expand Down

0 comments on commit 189f7fc

Please sign in to comment.