Use a release build in the bootstrap script
This commit is contained in:
parent
5fb1140688
commit
a8692797ae
1 changed files with 6 additions and 6 deletions
12
bootstrap.sh
12
bootstrap.sh
|
@ -4,15 +4,15 @@
|
|||
# power comes great responsibility.
|
||||
# We deliberately avoid reformatting files with rustfmt comment directives.
|
||||
|
||||
cargo build
|
||||
cargo build --release
|
||||
|
||||
target/debug/rustfmt --write-mode=overwrite src/lib.rs
|
||||
target/debug/rustfmt --write-mode=overwrite src/bin/rustfmt.rs
|
||||
target/debug/rustfmt --write-mode=overwrite src/bin/cargo-fmt.rs
|
||||
target/debug/rustfmt --write-mode=overwrite tests/system.rs
|
||||
target/release/rustfmt --write-mode=overwrite src/lib.rs
|
||||
target/release/rustfmt --write-mode=overwrite src/bin/rustfmt.rs
|
||||
target/release/rustfmt --write-mode=overwrite src/bin/cargo-fmt.rs
|
||||
target/release/rustfmt --write-mode=overwrite tests/system.rs
|
||||
|
||||
for filename in tests/target/*.rs; do
|
||||
if ! grep -q "rustfmt-" "$filename"; then
|
||||
target/debug/rustfmt --write-mode=overwrite $filename
|
||||
target/release/rustfmt --write-mode=overwrite $filename
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue