Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
BIN_NAME=asciii
unset RUSTFLAGS
cargo clean
cargo build --release && cp target/release/$BIN_NAME $BIN_NAME_release_build_no_mir
unset RUSTFLAGS
cargo clean
RUSTFLAGS="-C link-args=-s -C link-args=-Wl,-x -C opt-level=z"
cargo build --release && cp target/release/$BIN_NAME $BIN_NAME_release_build_no_mir_z
unset RUSTFLAGS
cargo clean
RUSTFLAGS="-Zorbit"
cargo build --release && cp target/release/$BIN_NAME $BIN_NAME_release_build_with_mir
unset RUSTFLAGS
cargo clean
RUSTFLAGS="-C link-args=-s -C link-args=-Wl,-x -C opt-level=z"
cargo build --release && cp target/release/$BIN_NAME $BIN_NAME_release_build_with_mir_z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment