Closed
Description
To improve build times rustc is now defaulting to building crates using multiple codegen units. The
problem is that using multiple codegen units can sometimes break linking of no-std applications
("undefined reference to rust_begin_unwind
").
We are looking for someone who can help us fix the problem in the compiler
Tasks
- Tweak rustc linking process to properly support multiple codegen units. The problem and
solution is described in Multiple codegen units breaks linking: "undefined reference to rust_begin_unwind" rust-lang/rust#47074 (comment)
The current workaround for this issue is to force the compiler to use a single codegen unit in
Cargo.toml
# workaround rust-lang/rust#47074
[profile.dev]
codegen-units = 1
incremental = false