summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/builder/build-sm-mozjs-crate.sh
blob: 09c353084d0a02ec5eebfc934d653e38b969c1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -xe

source $(dirname $0)/sm-tooltool-config.sh

# Ensure that we have a .config/cargo that points us to our vendored crates
# rather than to crates.io.
cd "$SRCDIR/.cargo"
sed -e "s|@top_srcdir@|$SRCDIR|" < config.in | tee config

cd "$SRCDIR/js/src"

export PATH="$PATH:$TOOLTOOL_CHECKOUT/cargo/bin:$TOOLTOOL_CHECKOUT/rustc/bin"
export RUST_BACKTRACE=1

cargo build --verbose --frozen --features debugmozjs
cargo build --verbose --frozen