Fix no-panic
This commit is contained in:
parent
54a57001f8
commit
4f5d1524fd
2 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue