summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/source-test-common.sh
blob: eb2409cf4e2029b8cda006a062119611008ae097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash -vex

set -x -e

export MOZBUILD_STATE_PATH=$HOME/workspace

# Add toolchain binaries to PATH to run ./mach configure
export PATH=$MOZ_FETCHES_DIR/clang/bin:$PATH
export PATH=$MOZ_FETCHES_DIR/rustc/bin:$PATH
export PATH=$MOZ_FETCHES_DIR/cbindgen:$PATH
export PATH=$MOZ_FETCHES_DIR/nasm:$PATH
export PATH=$MOZ_FETCHES_DIR/node/bin:$PATH

# Use clang as host compiler
export CC=$MOZ_FETCHES_DIR/clang/bin/clang
export CXX=$MOZ_FETCHES_DIR/clang/bin/clang++