Skip to content

Commit 585c767

Browse files
committed
Use llvm-ar with the flag 'L' instead of a helper MRI script for merging archives
1 parent 52fc6c5 commit 585c767

File tree

4 files changed

+5
-42
lines changed

4 files changed

+5
-42
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN ./build-mingw-w64.sh $TOOLCHAIN_PREFIX && \
3737
rm -rf /build/*
3838

3939
# Build libunwind/libcxxabi/libcxx
40-
COPY build-libcxx.sh merge-archives.sh ./
40+
COPY build-libcxx.sh ./
4141
RUN ./build-libcxx.sh $TOOLCHAIN_PREFIX && \
4242
rm -rf /build/*
4343

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN cd test && \
6565
done
6666

6767
# Build libunwind/libcxxabi/libcxx
68-
COPY build-libcxx.sh merge-archives.sh ./
68+
COPY build-libcxx.sh ./
6969
RUN ./build-libcxx.sh $TOOLCHAIN_PREFIX
7070

7171
# Build C++ test applications

build-libcxx.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ if [ -n "$SYNC" ] || [ -n "$CHECKOUT_LIBCXX" ]; then
6666
fi
6767

6868
LIBCXX=$(pwd)/libcxx
69-
MERGE_ARCHIVES=$(pwd)/merge-archives.sh
7069

7170
case $(uname) in
7271
MINGW*)
@@ -125,7 +124,7 @@ build_all() {
125124
else
126125
# Merge libpsapi.a into the static library libunwind.a, to
127126
# avoid having to specify -lpsapi when linking to it.
128-
$MERGE_ARCHIVES \
127+
llvm-ar qcsL \
129128
$PREFIX/$arch-w64-mingw32/lib/libunwind.a \
130129
$PREFIX/$arch-w64-mingw32/lib/libpsapi.a
131130
fi
@@ -219,12 +218,12 @@ build_all() {
219218
make -j$CORES
220219
make install
221220
if [ "$type" = "shared" ]; then
222-
$MERGE_ARCHIVES \
221+
llvm-ar qcsL \
223222
$PREFIX/$arch-w64-mingw32/lib/libc++.dll.a \
224223
$PREFIX/$arch-w64-mingw32/lib/libunwind.dll.a
225224
cp lib/libc++.dll $PREFIX/$arch-w64-mingw32/bin
226225
else
227-
$MERGE_ARCHIVES \
226+
llvm-ar qcsL \
228227
$PREFIX/$arch-w64-mingw32/lib/libc++.a \
229228
$PREFIX/$arch-w64-mingw32/lib/libunwind.a
230229
fi

merge-archives.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)