fune/taskcluster/scripts/misc/build-wasi-sysroot.sh
David Major 00d90b6c8a Bug 1661126 - Update wasi-sdk to pick up clang-11 build fixes r=firefox-build-system-reviewers,rstewart
Also reflects the move from CraneStation to the WebAssembly account. And we need a small tweak to the build script to accommodate one of the changes that got picked up along the way.

Differential Revision: https://phabricator.services.mozilla.com/D88187
2020-08-25 22:19:08 +00:00

12 lines
506 B
Bash
Executable file

#!/bin/bash
set -x -e -v
export PATH="$MOZ_FETCHES_DIR/gcc/bin:$MOZ_FETCHES_DIR/binutils/bin:$PATH"
export LD_LIBRARY_PATH="$MOZ_FETCHES_DIR/gcc/lib64/:$LD_LIBRARY_PATH"
cd $MOZ_FETCHES_DIR/wasi-sdk
PREFIX=$MOZ_FETCHES_DIR/wasi-sdk/wasi-sysroot
LLVM_PROJ_DIR=$MOZ_FETCHES_DIR/llvm-project
make LLVM_PROJ_DIR=$LLVM_PROJ_DIR PREFIX=$PREFIX
# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
tar -C $MOZ_FETCHES_DIR/wasi-sdk/build/install/$PREFIX/../ -caf $UPLOAD_DIR/wasi-sysroot.tar.xz wasi-sysroot