Skip to content

Commit 5b883ed

Browse files
committed
samples: bench: Increase optimization of benchmark
Make sure the benchmark is fully optimized, even in dev mode. Signed-off-by: David Brown <[email protected]>
1 parent e2191c8 commit 5b883ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

samples/bench/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ zephyr-build = "0.1.0"
2323
debug-assertions = true
2424
overflow-checks = true
2525
debug = true
26+
opt-level = "z"
27+
lto = true
28+
29+
[profile.dev]
30+
debug = 2
31+
lto = true
32+
opt-level = "z"

0 commit comments

Comments
 (0)