mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Merge pull request #738 from TheBlueMatt/2020-10-opt-test
Fix passing -O1 to build from `cargo test`
This commit is contained in:
commit
df778b605a
1 changed files with 6 additions and 4 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -5,11 +5,13 @@ members = [
|
||||||
"lightning-net-tokio",
|
"lightning-net-tokio",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
|
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it.
|
||||||
[profile.test]
|
# Ideally we would only do this in profile.test, but profile.test only applies to
|
||||||
opt-level = 1
|
# the test binary, not dependencies, which means most of the critical code still
|
||||||
|
# gets compiled as -O0. See
|
||||||
|
# https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
opt-level = 1
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
Loading…
Add table
Reference in a new issue