gecko-dev/taskcluster/scripts/builder/build-sm-rust-bindings.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
391 B
Bash
Executable file

#!/usr/bin/env bash
set -xe
source $(dirname $0)/sm-tooltool-config.sh
cd "$SRCDIR/js/rust"
cp $SRCDIR/.cargo/config.in $SRCDIR/.cargo/config
export RUSTFMT="$MOZ_FETCHES_DIR/rustc/bin/rustfmt"
export LD_LIBRARY_PATH="$MOZ_FETCHES_DIR/gcc/lib64"
# Enable backtraces if we panic.
export RUST_BACKTRACE=1
cargo test --verbose --frozen --features debugmozjs
cargo test --verbose --frozen