]> git.lizzy.rs Git - rust.git/commit
Auto merge of #41757 - alexcrichton:stabilize-crt-static, r=japaric
authorbors <bors@rust-lang.org>
Fri, 12 May 2017 07:33:10 +0000 (07:33 +0000)
committerbors <bors@rust-lang.org>
Fri, 12 May 2017 07:33:10 +0000 (07:33 +0000)
commite19ccb71c8427135a69d874623af68422aeeb9e9
treec43c66cddaea88b74c3243c20d82c09fea9d0b13
parent141e8a6a0203d546b9775ba6ecdc5eb1d748c3d4
parent5013952e4a1b15198c3569fdcb9890af70f06ab9
Auto merge of #41757 - alexcrichton:stabilize-crt-static, r=japaric

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
src/librustc_driver/target_features.rs