add debuginfo to test --release
This commit is contained in:
+13
@@ -32,6 +32,7 @@ defmt-info = []
|
|||||||
defmt-warn = []
|
defmt-warn = []
|
||||||
defmt-error = []
|
defmt-error = []
|
||||||
|
|
||||||
|
# cargo build/run
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
debug = 2
|
debug = 2
|
||||||
@@ -40,6 +41,7 @@ incremental = false
|
|||||||
opt-level = 3 # <-
|
opt-level = 3 # <-
|
||||||
overflow-checks = true # <-
|
overflow-checks = true # <-
|
||||||
|
|
||||||
|
# cargo test
|
||||||
[profile.test]
|
[profile.test]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
debug = 2
|
debug = 2
|
||||||
@@ -48,6 +50,7 @@ incremental = false
|
|||||||
opt-level = 3 # <-
|
opt-level = 3 # <-
|
||||||
overflow-checks = true # <-
|
overflow-checks = true # <-
|
||||||
|
|
||||||
|
# cargo build/run --release
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
debug = 2
|
debug = 2
|
||||||
@@ -57,6 +60,16 @@ lto = 'fat'
|
|||||||
opt-level = 3 # <-
|
opt-level = 3 # <-
|
||||||
overflow-checks = false # <-
|
overflow-checks = false # <-
|
||||||
|
|
||||||
|
# cargo test --release
|
||||||
|
[profile.bench]
|
||||||
|
codegen-units = 1
|
||||||
|
debug = 2
|
||||||
|
debug-assertions = false # <-
|
||||||
|
incremental = false
|
||||||
|
lto = 'fat'
|
||||||
|
opt-level = 3 # <-
|
||||||
|
overflow-checks = false # <-
|
||||||
|
|
||||||
# uncomment this to switch from the crates.io version of defmt to its git version
|
# uncomment this to switch from the crates.io version of defmt to its git version
|
||||||
# check app-template's README for instructions
|
# check app-template's README for instructions
|
||||||
# [patch.crates-io]
|
# [patch.crates-io]
|
||||||
|
|||||||
Reference in New Issue
Block a user