forked from mirrors/gecko-dev
This option shouldn't be used for local builds (see bug 1294157). Set the option from the crate's taskcluster script instead, so that it's used only for automated builds. --HG-- extra : rebase_source : 94b398a0f1fac60094269d755735c426ecc63e17
19 lines
499 B
Bash
Executable file
19 lines
499 B
Bash
Executable file
#!/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|" -e 's|@[^@]*@||g' < config.in > config
|
|
|
|
cd "$SRCDIR/js/src"
|
|
|
|
export PATH="$PATH:$TOOLTOOL_CHECKOUT/cargo/bin:$TOOLTOOL_CHECKOUT/rustc/bin"
|
|
export RUST_BACKTRACE=1
|
|
export AUTOMATION=1
|
|
|
|
cargo build --verbose --frozen --features debugmozjs
|
|
cargo build --verbose --frozen
|