From 5225b05436ce57f01fe649f411f3ff701246628b Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 31 Oct 2019 15:13:05 -0700 Subject: [PATCH] Create standalone archive of the wasi sysroot (#77) Fixes: #69 --- tar_from_installation.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tar_from_installation.sh b/tar_from_installation.sh index 59afbe4..dc8dae5 100755 --- a/tar_from_installation.sh +++ b/tar_from_installation.sh @@ -20,4 +20,9 @@ rm -rf $PKGDIR cp -R /opt/wasi-sdk $PKGDIR cd build tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION + +# As well as the full SDK package, also create archives of libclang_rt.builtins +# and the sysroot. These are made available for users who have an existing clang +# installation. tar czf libclang_rt.builtins-wasm32-wasi-$VERSION.tar.gz -C compiler-rt lib/wasi +tar czf wasi-sysroot-$VERSION.tar.gz -C wasi-sdk-$VERSION/share wasi-sysroot