Skip to content

Fix linking issues when using multiple codegen units #53

Closed
@japaric

Description

@japaric

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions