-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LTOArea: Link-time optimization (LTO)Area: Link-time optimization (LTO)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
bjorn3 commentedon Sep 7, 2023
I would guess this is caused by the combination of
-Copt-level=0
and-Clinker-plugin-lto
. As workaround try adding--target aarch64-apple-darwin
to the cargo invocation. That will cause it to ignore RUSTFLAGS for proc macros and build scripts.