7 Commits

Author SHA1 Message Date
Weihang Lo
fbb5b90fe0
test(build-std): make mock-std closer to real world
`test_std_on_unsupported_target` never really succeed to build those targets, due to

* local rustup may not have `{aarch64,x86_64}-unknown-none` installed.
* `core` and `compiler-builtins` mock crate are not `no_std` nor `no_core`
* the dummy `main.rs` uses `println!` and is not `no_std`.

This commit make it compile, if you have those targets installed.
2024-12-05 10:50:51 -05:00
Harry Moulton
b6e1942ff2 test: mock-std test case for shared dependencies without --target req
Add a test case which ensures that -Zbuild-std without --target
correctly handles building a crate that has a shared dependency between
it's own build script, and std.
2024-09-25 10:52:58 +01:00
Weihang Lo
da8138e3c4
fix(build-std): remove hack on creating virtual std workspace
Starting from rust-lang/rust#128534 (nightly-2024-08-05),
stnadard library has its own Cargo workspace.
Hence `-Zbuild-std` no longer need to fake a virtual workspace.

This also adjusts Cargo.toml in `mock-std` to align with std's Cargo.toml
2024-08-05 23:35:29 -04:00
Weihang Lo
3df35edca7
fix: hack around libsysroot instead of libtest 2023-05-05 14:48:37 +01:00
Alex Crichton
602f6b64de Revert "Check if rust-src contains a vendor dir, and patch it in"
This reverts commit eadb4fc86c6660760ff857df41b7e88f6da0f714.
2020-12-11 07:45:27 -08:00
Alexis Beingessner
eadb4fc86c Check if rust-src contains a vendor dir, and patch it in
This is the cargo side of https://github.com/rust-lang/wg-cargo-std-aware/issues/23
2020-11-10 11:47:32 -05:00
Yuki Okushi
7c77fedabb
Fix mock-std as well 2020-07-29 12:41:49 +09:00