Skip to content

Commit

Permalink
Now rust_fmt.sh will compile dependencies if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
allada committed Jan 10, 2021
1 parent 2abea44 commit c93b852
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -eu -o pipefail
cd "$(dirname $(realpath $0))"

RUST_FMT="./bazel-bin/external/raze__rustfmt_nightly__1_4_21/cargo_bin_rustfmt"
if [ ! -e "$RUST_FMT" ] ; then
bazel build @raze__rustfmt_nightly__1_4_21//:cargo_bin_rustfmt
fi
if [ "${1:-}" != "" ]; then
FILES="$@"
else
Expand Down

0 comments on commit c93b852

Please sign in to comment.