-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ThinLTO and multiple codegen units causes linking failure on Mac #45165
Comments
joshlf
changed the title
ThinLTO causes linking failure on Mac
ThinLTO and multiple codegen units causes linking failure on Mac
Oct 10, 2017
Thank you for the bug report, @joshlf! |
TimNN
added
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-macos
Operating system: macOS
labels
Oct 10, 2017
np! |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 11, 2017
This commit updates the reachability pass of the compiler to seed the local worklist with `#[linkage]`-like items anywhere in a crate, not just those reachable from public items. Closes rust-lang#45165
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 12, 2017
…michaelwoerister rustc: Handle `#[no_mangle]` anywhere in a crate This commit updates the reachability pass of the compiler to seed the local worklist with `#[no_mangle]`-like items anywhere in a crate, not just those reachable from public items. Closes rust-lang#45165
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 12, 2017
This commit updates the reachability pass of the compiler to seed the local worklist with `#[linkage]`-like items anywhere in a crate, not just those reachable from public items. Closes rust-lang#45165
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 13, 2017
…michaelwoerister rustc: Handle `#[no_mangle]` anywhere in a crate This commit updates the reachability pass of the compiler to seed the local worklist with `#[no_mangle]`-like items anywhere in a crate, not just those reachable from public items. Closes rust-lang#45165
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling the
elfc
crate at this commit of elfmalloc causes a linking failure with:codegen-units=16
(
RUSTFLAGS='-C codegen-units=16 -Z thinlto' cargo build --release
)Version:
cargo 0.23.0-nightly (e447ac7e9 2017-09-27)
Building with
cargo build --release
and either of-C codegen-units=16
or-Z thinlto
on their own works fine.The text was updated successfully, but these errors were encountered: