rust-osdev / cargo-xbuild

Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.
Apache License 2.0
260 stars 25 forks source link

Pass -Cembed-bitcode=yes instead of -Clinker-plugin-lto for sysroot build #73

Closed phil-opp closed 4 years ago

phil-opp commented 4 years ago

This is the same approach that rustc bootstrap uses: https://github.com/rust-lang/rust/blob/a2e0b48e6eef854521d3199ee9e327aab298f071/src/bootstrap/compile.rs#L235-L245

See https://github.com/japaric/xargo/issues/292 and #69 for more information.

phil-opp commented 4 years ago

Published together with #75 as v0.5.32.