File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 225225case " -$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"
You can’t perform that action at this time.
0 commit comments