Skip to content

Commit 7d2287d

Browse files
Daan Sprenkelsdsprenkels
Daan Sprenkels
authored andcommitted
Set opt-level = 2 in development profile
During the build of this crate, the main bottleneck is the generation of the mcu description files. The compilation itself takes far less time. Therefore, optimizing the build will lead to faster builds.
1 parent fe2250e commit 7d2287d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ all_mcus = []
2323

2424
[build-dependencies]
2525
avr-mcu = "0.2"
26+
27+
[profile.dev]
28+
# Most of the build consists of generating the mcu description files. So
29+
# enable optimizations to speed this process.
30+
opt-level = 2

0 commit comments

Comments
 (0)