Cross-compiling rustc
with LTO enabled results in error
#110296
Labels
A-cross
Area: Cross compilation
A-LTO
Area: Link-time optimization (LTO)
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I'm trying to cross-compile the rust compiler to x86_64 on an M1 macOS machine with LTO enabled and ran into a compile error while building the stage2 compiler artifact:
I also tried cross-compiling aarch64 on an Intel Mac and ran into the same issue.
Here is the
config.toml
I used:It seems that
cargo
is enabling LTO for proc-macro crates, but only when cross-compiling?The text was updated successfully, but these errors were encountered: