Ran out of registers during register allocation #377
-
I have a fresh copy of I've seen #277 but compiling release gives error Any ideas? How are people setting up workspaces for multiple targets? I'm looking to target other microcontrollers, such as cortex-m4 (using cortex-m crate). Should I just not use a workspace in this case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Update, I was able to compile by moving: [profile.dev]
panic = "abort"
lto = true
opt-level = "s"
[profile.release]
panic = "abort"
codegen-units = 1
debug = true
lto = true
opt-level = "s" From the template I believe these settings should be good for all my platforms. One downside is that I can't build the whole workspace (for all platforms) in one |
Beta Was this translation helpful? Give feedback.
Update, I was able to compile by moving:
From the template
Cargo.toml
(in sub folder) into the workspaceCargo.toml
(in the root).I believe these settings should be good for all my platforms.
One downside is that I can't build the whole workspace (for all platforms) in one
cargo build
command because the.cargo/config
in each subfolder won't get noticed. I presume people are just building each manually? Is there a nice way to handle this without needing tocd
around?