ignore crates
if running unit tests
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
d3aed2cdb4
commit
f56d58e4a7
1 changed files with 5 additions and 0 deletions
|
@ -423,6 +423,11 @@ fn copy_self_contained_objects(
|
||||||
|
|
||||||
/// Resolves standard library crates for `Std::run_make` for any build kind (like check, build, clippy, etc.).
|
/// Resolves standard library crates for `Std::run_make` for any build kind (like check, build, clippy, etc.).
|
||||||
pub fn std_crates_for_run_make(run: &RunConfig<'_>) -> Vec<String> {
|
pub fn std_crates_for_run_make(run: &RunConfig<'_>) -> Vec<String> {
|
||||||
|
// FIXME: Extend builder tests to cover the `crates` field of `Std` instances.
|
||||||
|
if cfg!(feature = "bootstrap-self-test") {
|
||||||
|
return vec![];
|
||||||
|
}
|
||||||
|
|
||||||
let has_alias = run.paths.iter().any(|set| set.assert_single_path().path.ends_with("library"));
|
let has_alias = run.paths.iter().any(|set| set.assert_single_path().path.ends_with("library"));
|
||||||
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);
|
let target_is_no_std = run.builder.no_std(run.target).unwrap_or(false);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue