From e07b7df73de7dc8e77044a2343b2816a9106bf17 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 24 Apr 2019 12:07:27 +0200 Subject: [PATCH] Create a tarball of the clang-rt builtins in tar_from_installation.sh These builtins are required to use WASI with an existing clang installation. --- tar_from_installation.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tar_from_installation.sh b/tar_from_installation.sh index 839116a..65c33a1 100755 --- a/tar_from_installation.sh +++ b/tar_from_installation.sh @@ -19,4 +19,6 @@ esac rm -rf $PKGDIR mkdir -p $PKGDIR/opt cp -R /opt/wasi-sdk $PKGDIR/opt/ -cd build && tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION +cd build && +tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION && +tar cz -C compiler-rt -f libclang_rt.builtins-wasm32-wasi-$VERSION.tar.gz lib/wasi