Move link-time optimization config into Cargo.toml (#658)

Passing `-C lto` is more or less unsupported and may stop working, so do
this in Cargo.toml instead.
This commit is contained in:
Casey Rodarmor
2020-07-17 12:14:02 -07:00
committed by GitHub
parent c1a0001939
commit 8fad0626f8
2 changed files with 5 additions and 2 deletions

View File

@@ -17,11 +17,11 @@ echo "Building $bin..."
case $os in
ubuntu-latest | macos-latest)
cargo rustc --bin $bin --target $target --release -- -C lto
cargo rustc --bin $bin --target $target --release
executable=target/$target/release/$bin
;;
windows-latest)
cargo rustc --bin $bin --target $target --release -- -C lto -C target-feature="+crt-static"
cargo rustc --bin $bin --target $target --release -- -C target-feature="+crt-static"
executable=target/$target/release/$bin.exe
;;
esac