Skip to content

Commit a57939d

Browse files
Rollup merge of rust-lang#52157 - Amanieu:musl_libgcc, r=alexcrichton
Copy libgcc as well after building musl This is needed for rust-lang/libc#1034. r? @alexcrichton
2 parents 1d44b98 + 7ec188b commit a57939d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ci/docker/scripts/musl.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ cmake ../libunwind-release_$LLVM \
7878
hide_output make -j$(nproc)
7979
cp lib/libunwind.a /musl-$TAG/lib
8080
cd ../ && rm -rf libunwind-build
81+
82+
# Copy libgcc since musl may depend on symbols defined in it
83+
cp $($CC $CFLAGS -print-libgcc-file-name) /musl-$TAG/lib

0 commit comments

Comments
 (0)