Skip to content

Commit 47e5b09

Browse files
committed
Optimize embedded test
1 parent fe6da47 commit 47e5b09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ jobs:
121121
env:
122122
RUSTFLAGS: "-C link-arg=-Tlink.x"
123123
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
124-
run: cd embedded && cargo run --target thumbv7m-none-eabi
124+
run: cd embedded && cargo run --target thumbv7m-none-eabi --release

embedded/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ bench = false
2525
codegen-units = 1 # better optimizations
2626
debug = true # symbols are nice and they don't increase the size on Flash
2727
lto = true # better optimizations
28+
opt-level = "z"

0 commit comments

Comments
 (0)