Remove the workaround with the initial, dummy empty libunwind.a

This reverts parts of commit e35ef3b7d7.

This is now handled better upstream, since
7af584ed87cc6eddb6adbc451c90fb8867469e06 in llvm-project
(November 5th 2021).
This commit is contained in:
Martin Storsjö committed 2022-02-09 14:02:20 +02:00
1 parent 81c39dda6a
commit 89af3e6a71
2 files changed
+1 -26

No files matched your search

-10
View File
@@ -194,13 +194,3 @@ build_all() {
# work when linking against the DLL, but not vice versa.
[ -z "$BUILD_SHARED" ] || build_all shared
[ -z "$BUILD_STATIC" ] || build_all static
# Remove dummy placeholder libunwind.a. If we've built a static version, it
# already was overwritten with a proper one, but if only building a shared
# version, remove the dummy one to avoid surprises.
for arch in $ARCHS; do
# Only remove the file if it contains no members.
if [ -f $PREFIX/$arch-w64-mingw32/lib/libunwind.a ] && [ "$(llvm-ar t $PREFIX/$arch-w64-mingw32/lib/libunwind.a)" = "" ]; then
rm $PREFIX/$arch-w64-mingw32/lib/libunwind.a
fi
done