File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,19 @@ fn setup() -> Setup {
96
96
args.push(env::var("REAL_SYSROOT").unwrap());
97
97
} else if args.iter().any(|arg| arg == "--target") {
98
98
// build-std target unit
99
- args.push("--sysroot".to_string());
100
- args.push("/path/to/nowhere".to_string());
99
+ //
100
+ // This `--sysroot` is here to disable the sysroot lookup,
101
+ // to ensure nothing is required.
102
+ // See https://github.com/rust-lang/wg-cargo-std-aware/issues/31
103
+ // for more information on this.
104
+ //
105
+ // FIXME: this is broken on x86_64-unknown-linux-gnu
106
+ // due to https://github.com/rust-lang/rust/pull/124129,
107
+ // because it requires lld in the sysroot. See
108
+ // https://github.com/rust-lang/rust/issues/125246 for
109
+ // more information.
110
+ // args.push("--sysroot".to_string());
111
+ // args.push("/path/to/nowhere".to_string());
101
112
} else {
102
113
// host unit, do not use sysroot
103
114
}
You can’t perform that action at this time.
0 commit comments