Skip to content

Ran out of registers during register allocation #377

Discussion options

You must be logged in to vote

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 Cargo.toml (in sub folder) into the workspace Cargo.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 to cd around?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Rahix
Comment options

@alexmadeathing
Comment options

@ghost
Comment options

@Rahix
Comment options

Answer selected by alexmadeathing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants