Skip to content

Commit 47122e3

Browse files
committed
ignore crates if running unit tests
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent adedaa3 commit 47122e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+5
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ fn copy_self_contained_objects(
422422

423423
/// Resolves standard library crates for `Std::run_make` for any build kind (like check, build, clippy, etc.).
424424
pub fn std_crates_for_run_make(run: &RunConfig<'_>) -> Vec<String> {
425+
// FIXME: Extend builder tests to cover the `crates` field of `Std` instances.
426+
if cfg!(feature = "bootstrap-self-test") {
427+
return vec![];
428+
}
429+
425430
let has_alias = run.paths.iter().any(|set| set.assert_single_path().path.ends_with("library"));
426431
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);
427432

0 commit comments

Comments
 (0)