Fix no-panic

This commit is contained in:
Amanieu d'Antras 2022-01-03 21:32:08 +01:00
parent 13890be6ad
commit 70119faaa4
2 changed files with 7 additions and 0 deletions

View File

@ -33,3 +33,7 @@ no-panic = "0.1.8"
[build-dependencies]
rand = { version = "0.6.5", optional = true }
# This is needed for no-panic to correctly detect the lack of panics
[profile.release]
lto = "fat"

View File

@ -5,6 +5,9 @@ TARGET=$1
CMD="cargo test --all --target $TARGET"
# Needed for no-panic to correct detect a lack of panics
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
# stable by default
$CMD
$CMD --release