improvements on build_steps::test implementation#135887
improvements on build_steps::test implementation#135887bors merged 3 commits intorust-lang:masterfrom
build_steps::test implementation#135887Conversation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
|
rustbot has assigned @Mark-Simulacrum. Use |
|
This PR modifies If appropriate, please update |
| if let Some(flags) = option_env!("RUSTFLAGS") { | ||
| // Use the same rustc flags for testing as for "normal" compilation, | ||
| // so that Cargo doesn’t recompile the entire dependency graph every time: | ||
| // https://github.com/rust-lang/rust/issues/49215 | ||
| cmd.env("RUSTFLAGS", flags); | ||
| } |
There was a problem hiding this comment.
Note: this is already handled from Cargo with
rust/src/bootstrap/src/core/builder/cargo.rs
Lines 27 to 31 in b2728d5
| // `{build-dir}` can be anywhere, not just in the rust project directory. | ||
| let dep = Path::new(args.first().unwrap()); | ||
| let expected_out = dep.ancestors().nth(4).unwrap(); | ||
| let expected_out = dep.ancestors().nth(5).unwrap(); |
There was a problem hiding this comment.
Output path now also includes the host triple as bootstrap passes that regardless even for non-cross builds
rust/src/bootstrap/src/core/builder/cargo.rs
Lines 415 to 416 in b2728d5
|
@bors r+ rollup |
…=jieyouxu improvements on `build_steps::test` implementation Reviewing commits one-by-one should make it easier to understand.
Rollup of 10 pull requests Successful merges: - rust-lang#134746 (Don't ICE in coerce when autoderef fails to structurally normalize non-WF type in new solver) - rust-lang#135552 ([AIX] Lint on structs that have a different alignment in AIX's C ABI) - rust-lang#135764 (Fix tests on LLVM 20) - rust-lang#135779 (CI: free disk on linux arm runner) - rust-lang#135790 (Update windows-gnu targets to set `DebuginfoKind::DWARF`) - rust-lang#135879 (fix outdated file path ref in llvm) - rust-lang#135883 (Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`) - rust-lang#135884 (remove implied end of slice) - rust-lang#135887 (improvements on `build_steps::test` implementation) - rust-lang#135898 (rustdoc-json-types: Finalize dyn compatibility renaming) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#134746 (Don't ICE in coerce when autoderef fails to structurally normalize non-WF type in new solver) - rust-lang#135552 ([AIX] Lint on structs that have a different alignment in AIX's C ABI) - rust-lang#135779 (CI: free disk on linux arm runner) - rust-lang#135790 (Update windows-gnu targets to set `DebuginfoKind::DWARF`) - rust-lang#135879 (fix outdated file path ref in llvm) - rust-lang#135883 (Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`) - rust-lang#135884 (remove implied end of slice) - rust-lang#135887 (improvements on `build_steps::test` implementation) - rust-lang#135898 (rustdoc-json-types: Finalize dyn compatibility renaming) r? `@ghost` `@rustbot` modify labels: rollup
Reviewing commits one-by-one should make it easier to understand.