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 upTracking issue for customizing CRT linkage #37406
Comments
alexcrichton
added
A-tools
B-RFC-approved
labels
Oct 25, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 3, 2016
alexcrichton
referenced this issue
Nov 3, 2016
Merged
rustc: Implement #[link(cfg(..))] and crt-static #37545
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 6, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 11, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 11, 2016
eddyb
added a commit
to eddyb/rust
that referenced
this issue
Nov 11, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 14, 2016
bors
added a commit
that referenced
this issue
Nov 14, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 14, 2016
bors
added a commit
that referenced
this issue
Nov 15, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 15, 2016
bors
added a commit
that referenced
this issue
Nov 15, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 15, 2016
bors
added a commit
that referenced
this issue
Nov 15, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 16, 2016
bors
added a commit
that referenced
this issue
Nov 16, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
So this landed in stable right? Can this be closed now? |
This comment has been minimized.
This comment has been minimized.
|
AFAIK this feature is still gated, but I'll update the tags as such. |
alexcrichton
added
B-unstable
T-tools
and removed
B-RFC-approved
labels
Jan 5, 2017
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/compiler -- anyone want to make a quick stabilization PR that we can backport to 1.17 beta? |
This comment has been minimized.
This comment has been minimized.
|
Stabilization is a great place for a first PR. There are directions available on the forge: https://forge.rust-lang.org/stabilization-guide.html However, @alexcrichton -- are there docs available for this feature? |
This comment has been minimized.
This comment has been minimized.
|
I'm not aware of any. |
This comment has been minimized.
This comment has been minimized.
|
I've added documentation in rust-lang-nursery/reference#17 In doing so I've realized that we have another can of worms to open before we can stabilize this, unfortunately. |
alexcrichton
referenced this issue
Mar 20, 2017
Closed
Tracking issue for `cfg_target_feature` #29717
This comment has been minimized.
This comment has been minimized.
|
Be aware that some platforms do not offer a static libc, such as Solaris. Fyi. |
steveklabnik
removed
the
A-tools
label
Mar 24, 2017
alexcrichton
removed
the
final-comment-period
label
Apr 29, 2017
This comment has been minimized.
This comment has been minimized.
|
This was discussed at tools triage recently and the decision was to go ahead and stabilize |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 4, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 4, 2017
alexcrichton
referenced this issue
May 4, 2017
Merged
rustc: Stabilize `-C target-feature=+crt-static` #41757
This comment has been minimized.
This comment has been minimized.
|
I've opened a stabilization PR to reflect this conclusion. |
bors
added a commit
that referenced
this issue
May 12, 2017
bors
closed this
in
#41757
May 12, 2017
citizen428
added a commit
to citizen428/rust
that referenced
this issue
May 17, 2017
This comment has been minimized.
This comment has been minimized.
|
So apparently, libc fails to compile on MUSL for me because of this feature:
But this appears to be stabilised? Am I missing something? (note: this is via |
This comment has been minimized.
This comment has been minimized.
|
@clarcharr I believe that's because it's stable in 1.19, which is gonna get released in like 45 minutes. |
This comment has been minimized.
This comment has been minimized.
|
@steveklabnik sorry, I should have clarified that this is on nightly. |
This comment has been minimized.
This comment has been minimized.
|
It looks like the issue is more about using the |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
jirutka
commented
Jul 20, 2017
|
/cc @Shizmob |
This comment has been minimized.
This comment has been minimized.
|
@retep998 I'm having trouble imagining this as a bug in libc considering how musl is a tested target; maybe a recent change triggered this? |
This comment has been minimized.
This comment has been minimized.
|
The syntax As far as I can tell by looking at the code, that attribute should only even be activated during a cargo build when you've opted out of the |
This comment has been minimized.
This comment has been minimized.
|
aha! I'll link this in a comment on libc to point out that the musl build is indeed failing. |

alexcrichton commentedOct 25, 2016
•
edited
Tracking issue for rust-lang/rfcs#1721
crt-statictarget-feature