Source code

Revision control

Other Tools

#!/bin/bash
set -x -e -v
artifact=$(basename $TOOLCHAIN_ARTIFACT)
dir=${artifact%.tar.*}
cd $MOZ_FETCHES_DIR/wasi-sdk
LLVM_PROJ_DIR=$MOZ_FETCHES_DIR/llvm-project
# Build compiler-rt
make \
LLVM_PROJ_DIR=$LLVM_PROJ_DIR \
PREFIX=/wasi \
build/compiler-rt.BUILT \
-j$(nproc)
mkdir -p $dir/lib
mv build/install/wasi/lib/clang/*/lib/wasi $dir/lib
tar --zstd -cf $artifact $dir
mkdir -p $UPLOAD_DIR
mv $artifact $UPLOAD_DIR/