-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12088 - weihanglo:build-std-fix, r=epage
fix: hack around `libsysroot` instead of `libtest` ### What does this PR try to resolve? This is a fix in response to rust-lang/rust#108865. Cargo `-Zbuild-std` now use `sysroot` crate to resolve cargo features instead of the old hack around `libtest`. `sysroot` is just a dummy crate depending on other standard library crates.
- Loading branch information
Showing
4 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "sysroot" | ||
version = "0.1.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
proc_macro = { path = "../proc_macro" } | ||
std = { path = "../std" } | ||
test = { path = "../test" } | ||
|
||
[features] | ||
panic-unwind = [] | ||
backtrace = [] | ||
feature1 = ["std/feature1"] | ||
default = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Intentionally left blank. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,7 @@ authors = ["Alex Crichton <[email protected]>"] | |
edition = "2018" | ||
|
||
[dependencies] | ||
proc_macro = { path = "../proc_macro" } | ||
std = { path = "../std" } | ||
panic_unwind = { path = "../panic_unwind" } | ||
compiler_builtins = { path = "../compiler_builtins" } | ||
registry-dep-using-std = { version = "*", features = ['mockbuild'] } | ||
|
||
[features] | ||
panic-unwind = [] | ||
backtrace = [] | ||
feature1 = ["std/feature1"] | ||
default = [] |