gecko-dev/taskcluster/scripts/builder/build-sm-mozjs-crate.sh
Emilio Cobos Álvarez b9e29077e8 Bug 1602651 - Explicitly point to rustfmt during spidermonkey rust build. r=glandium
We build bindgen without the `which` feeature, which means it won't try to
look for `rustfmt` in $PATH. So point at it explicitly so that the bindings are
properly formatted.

We do the same for regular Gecko builds in `build/mozconfig.rust`.

Differential Revision: https://phabricator.services.mozilla.com/D56957

--HG--
extra : moz-landing-system : lando
2019-12-13 07:34:35 +00:00

17 lines
401 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
source $(dirname $0)/sm-tooltool-config.sh
cd "$SRCDIR/js/src"
cp $SRCDIR/.cargo/config.in $SRCDIR/.cargo/config
export PATH="$PATH:$MOZ_FETCHES_DIR/cargo/bin:$MOZ_FETCHES_DIR/rustc/bin"
export RUSTFMT="$MOZ_FETCHES_DIR/rustc/bin/rustfmt"
export RUST_BACKTRACE=1
export AUTOMATION=1
cargo build --verbose --frozen --features debugmozjs
cargo build --verbose --frozen