Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upThinLTO 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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thank you for the bug report, @joshlf! |
TimNN
added
A-linkage
C-bug
O-macos
labels
Oct 10, 2017
This comment has been minimized.
This comment has been minimized.
|
np! |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 10, 2017
alexcrichton
referenced this issue
Oct 10, 2017
Merged
rustc: Handle `#[no_mangle]` anywhere in a crate #45189
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 11, 2017
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 11, 2017
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 11, 2017
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 12, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Oct 12, 2017
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Oct 13, 2017
bors
closed this
in
#45189
Oct 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
joshlf commentedOct 10, 2017
•
edited
Compiling the
elfccrate 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 --releaseand either of-C codegen-units=16or-Z thinltoon their own works fine.