Skip to content

Commit 279ed19

Browse files
committed
Skip sysroot
1 parent 1297a81 commit 279ed19

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

ci/merge-artifacts.sh

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -56,43 +56,12 @@ make_deb() {
5656

5757
for build in dist-*; do
5858
toolchain=`ls $build/wasi-toolchain-*`
59-
if [ -f $build/wasi-sysroot-* ]; then
60-
sysroot=`ls $build/wasi-sysroot-*`
61-
else
62-
sysroot=`ls dist-x86_64-linux/wasi-sysroot-*`
63-
fi
64-
if [ -f $build/libclang_rt* ]; then
65-
compiler_rt=`ls $build/libclang_rt*`
66-
else
67-
compiler_rt=`ls dist-x86_64-linux/libclang_rt*`
68-
fi
69-
7059
sdk_dir=`basename $toolchain | sed 's/.tar.gz//' | sed s/toolchain/sdk/`
7160
mkdir dist/$sdk_dir
72-
73-
# Start with the toolchain and then overlay the sysroot into
74-
# `share/wasi-sysroot`, the default sysroot.
7561
tar xf $toolchain -C dist/$sdk_dir --strip-components 1
76-
mkdir -p dist/$sdk_dir/share/wasi-sysroot
77-
tar xf $sysroot -C dist/$sdk_dir/share/wasi-sysroot --strip-components 1
78-
mv dist/$sdk_dir/share/wasi-sysroot/VERSION dist/$sdk_dir
79-
80-
# Setup the compiler-rt library for all targets.
81-
rtlibdir=$(dirname $(find dist/$sdk_dir/lib -name include))/lib
82-
mkdir -p $rtlibdir
83-
tar xf $compiler_rt -C $rtlibdir --strip-components 1
84-
8562
tar czf dist/$sdk_dir.tar.gz -C dist $sdk_dir
86-
8763
if echo $build | grep -q linux; then
8864
make_deb $build dist/$sdk_dir
8965
fi
9066
rm -rf dist/$sdk_dir
9167
done
92-
93-
# In addition to `wasi-sdk-*` also preserve artifacts for just the sysroot
94-
# and just compiler-rt.
95-
if [ -d dist-x86_64-linux ]; then
96-
cp dist-x86_64-linux/wasi-sysroot-* dist
97-
cp dist-x86_64-linux/libclang_rt* dist
98-
fi

0 commit comments

Comments
 (0)