Files
wasmtime/cranelift/format-all.sh
Dan Gohman d394ae0902 Enable "set -euo pipefail" in all bash scripts.
This enables "set -e", "set -u", and "set -o pipefail", which
catch common errors.
2018-02-27 15:32:21 -08:00

12 lines
188 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
cd $(dirname "$0")
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo fmt --all -- "$@"