Skip to content
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

rustc: Stabilize -C target-feature=+crt-static #41757

Merged
merged 1 commit into from
May 12, 2017

Conversation

alexcrichton
Copy link
Member

This commit stabilizes the crt-static feature accepted by the compiler. Note
that this does not stabilize the #[cfg] attribute for crt-static as
that's going to be covered by #29717. This only stabilizes a few small pieces:

  • The crt-static feature as accepted by the -C target-feature flag, and its
    connection with the platform-specific definition of crt-static.
  • The semantics of --print cfg printing out activated crt-static feature, if
    available.

This should be enough to get the benefits of crt-static on stable Rust with
MSVC and with musl, but sidsteps the issue of stabilizing #29717 first.

Closes #37406

This commit stabilizes the `crt-static` feature accepted by the compiler. Note
that this does not stabilize the `#[cfg]` attribute for `crt-static` as
that's going to be covered by rust-lang#29717. This only stabilizes a few small pieces:

* The `crt-static` feature as accepted by the `-C target-feature` flag, and its
  connection with the platform-specific definition of `crt-static`.
* The semantics of `--print cfg` printing out activated `crt-static` feature, if
  available.

This should be enough to get the benefits of `crt-static` on stable Rust with
MSVC and with musl, but sidsteps the issue of stabilizing rust-lang#29717 first.

Closes rust-lang#37406
@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

cc @rust-lang/tools

@shepmaster shepmaster added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 5, 2017
@arielb1
Copy link
Contributor

arielb1 commented May 9, 2017

r? @japaric.

@arielb1 arielb1 assigned japaric and unassigned pnkfelix May 9, 2017
@alexcrichton
Copy link
Member Author

ping @japaric for reviewing, or would you prefer to r? somone else?

@japaric
Copy link
Member

japaric commented May 12, 2017

Sorry for the delay @alexcrichton. LGTM

@bors r+

@bors
Copy link
Contributor

bors commented May 12, 2017

📌 Commit 5013952 has been approved by japaric

@bors
Copy link
Contributor

bors commented May 12, 2017

⌛ Testing commit 5013952 with merge e19ccb7...

bors added a commit that referenced this pull request May 12, 2017
rustc: Stabilize `-C target-feature=+crt-static`

This commit stabilizes the `crt-static` feature accepted by the compiler. Note
that this does not stabilize the `#[cfg]` attribute for `crt-static` as
that's going to be covered by #29717. This only stabilizes a few small pieces:

* The `crt-static` feature as accepted by the `-C target-feature` flag, and its
  connection with the platform-specific definition of `crt-static`.
* The semantics of `--print cfg` printing out activated `crt-static` feature, if
  available.

This should be enough to get the benefits of `crt-static` on stable Rust with
MSVC and with musl, but sidsteps the issue of stabilizing #29717 first.

Closes #37406
@bors
Copy link
Contributor

bors commented May 12, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing e19ccb7 to master...

@bors bors merged commit 5013952 into rust-lang:master May 12, 2017
@alexcrichton alexcrichton deleted the stabilize-crt-static branch June 6, 2017 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants