Skip to content

Commit 98b4ffc

Browse files
committed
chore: looks like -Wl,--icf=all only breaks with mold on loongarch64
1 parent b35941e commit 98b4ffc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.docker/build-linux.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ esac
225225
case "-$BUILD_TYPE-" in
226226
*-static-*)
227227
case "$CROSS_ARCH" in
228-
ppc64)
228+
ppc64|loongarch64)
229229
# https://github.com/rui314/mold/issues/1498
230230
CMAKE_ARGS="${CMAKE_ARGS} -DDISABLE_MOLD=1"
231231
export LDFLAGS="${LDFLAGS} -fuse-ld=lld"
@@ -247,10 +247,7 @@ case "-$BUILD_TYPE-" in
247247
export CFLAGS="${CFLAGS} -flto=auto"
248248
export CXXFLAGS="${CXXFLAGS} -flto=auto"
249249
export LDFLAGS="${LDFLAGS} -flto=auto"
250-
# On loongarch64, ICF currently causes SIGTRAPs, at least under qemu.
251-
if [[ "$_MARCH" != "loongarch64" ]]; then
252-
export LDFLAGS="${LDFLAGS} -Wl,--icf=all"
253-
fi
250+
export LDFLAGS="${LDFLAGS} -Wl,--icf=all"
254251
# GCC uses fat LTO objects
255252
if [[ "-$BUILD_TYPE-" != *-gcc-* ]]; then
256253
export COMPILER="${COMPILER}-lto"

0 commit comments

Comments
 (0)