|
|
@ -1,7 +1,13 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
set -ex
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
VERSION="$1"
|
|
|
|
OUTDIR=$1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
OUTDIR=$PWD/build
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$2" ]; then
|
|
|
|
|
|
|
|
VERSION="$2"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
VERSION=`./version.sh`
|
|
|
|
VERSION=`./version.sh`
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -19,10 +25,10 @@ esac
|
|
|
|
rm -rf $PKGDIR
|
|
|
|
rm -rf $PKGDIR
|
|
|
|
cp -R /opt/wasi-sdk $PKGDIR
|
|
|
|
cp -R /opt/wasi-sdk $PKGDIR
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
|
tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
|
|
|
|
tar czf $OUTDIR/wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
|
|
|
|
|
|
|
|
|
|
|
|
# As well as the full SDK package, also create archives of libclang_rt.builtins
|
|
|
|
# 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
|
|
|
|
# and the sysroot. These are made available for users who have an existing clang
|
|
|
|
# installation.
|
|
|
|
# installation.
|
|
|
|
tar czf libclang_rt.builtins-wasm32-wasi-$VERSION.tar.gz -C compiler-rt lib/wasi
|
|
|
|
tar czf $OUTDIR/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
|
|
|
|
tar czf $OUTDIR/wasi-sysroot-$VERSION.tar.gz -C wasi-sdk-$VERSION/share wasi-sysroot
|
|
|
|