Skip to content

Commit f6768b8

Browse files
committed
Fix release script LTO.
1 parent 8f7e030 commit f6768b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/make-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ fi
1111
TAG=${GITHUB_REF#*/tags/}
1212

1313
host=$(rustc -Vv | grep ^host: | sed -e "s/host: //g")
14-
cargo rustc --bin mdbook --release -- -C lto
14+
export CARGO_PROFILE_RELEASE_LTO=true
15+
cargo build --bin mdbook --release
1516
cd target/release
1617
case $1 in
1718
ubuntu* | macos*)

0 commit comments

Comments
 (0)