Fix no-panic
This commit is contained in:
@@ -33,3 +33,7 @@ no-panic = "0.1.8"
|
|||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
rand = { version = "0.6.5", optional = true }
|
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"
|
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
|
# stable by default
|
||||||
$CMD
|
$CMD
|
||||||
$CMD --release
|
$CMD --release
|
||||||
|
|||||||
Reference in New Issue
Block a user