summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-dist-toolchains.sh
blob: 1ad1871775204bc6547c06a010141d88fa045c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -x -e -v

# This script is for packaging toolchains suitable for use by distributed sccache.
TL_NAME="$1"

mkdir -p $HOME/artifacts
mkdir -p $HOME/toolchains

mv $MOZ_FETCHES_DIR/$TL_NAME $HOME/toolchains/$TL_NAME

$MOZ_FETCHES_DIR/sccache/sccache --package-toolchain $HOME/toolchains/$TL_NAME/bin/$TL_NAME $HOME/artifacts/$TL_NAME-dist-toolchain.tar.xz