about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2017-03-28 11:20:11 +1300
committerNick Cameron <ncameron@mozilla.com>2017-03-28 11:20:11 +1300
commita8692797ae9620b68223f36b52dfbc42c3c6e34e (patch)
tree9bdc5f55986ab6dae5f352f932d3cc55996c7f49
parent5fb1140688ae9e8a0cfc9d90a00f7dad4935e029 (diff)
Use a release build in the bootstrap script
-rwxr-xr-xbootstrap.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index c84b66340a8..d3878d9d61c 100755
--- a/bootstrap.sh
+++ b/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