Skip to content

Commit 7b22fcb

Browse files
committed
bootstrap: include host deps, not just target ones, in run_cargo.
1 parent 81ac104 commit 7b22fcb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/bootstrap/compile.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1064,15 +1064,9 @@ pub fn run_cargo(builder: &Builder,
10641064

10651065
let filename = Path::new(&*filename);
10661066

1067-
// If this was an output file in the "host dir" we don't actually
1068-
// worry about it, it's not relevant for us.
1069-
if filename.starts_with(&host_root_dir) {
1070-
continue;
1071-
}
1072-
10731067
// If this was output in the `deps` dir then this is a precise file
10741068
// name (hash included) so we start tracking it.
1075-
if filename.starts_with(&target_deps_dir) {
1069+
if filename.starts_with(&host_root_dir) || filename.starts_with(&target_deps_dir) {
10761070
deps.push(filename.to_path_buf());
10771071
continue;
10781072
}

0 commit comments

Comments
 (0)