@@ -863,7 +863,7 @@ pub fn run_cargo(
863
863
// to ignore it if it's a build script.
864
864
if filename. starts_with ( & host_root_dir) {
865
865
if crate_types. iter ( ) . any ( |t| t == "proc-macro" ) {
866
- deps. push ( ( filename. to_path_buf ( ) , true ) ) ;
866
+ deps. push ( ( filename. to_path_buf ( ) , /* host_dep */ true ) ) ;
867
867
}
868
868
869
869
let is_build_script = kind == & [ "custom_build" ]
@@ -876,7 +876,7 @@ pub fn run_cargo(
876
876
// FIXME: Have Cargo explicitly indicate build-script vs proc-macro dependencies,
877
877
// instead of relying on this check.
878
878
if !is_build_script {
879
- deps. push ( ( filename. to_path_buf ( ) , false ) ) ;
879
+ deps. push ( ( filename. to_path_buf ( ) , /* host_dep */ true ) ) ;
880
880
}
881
881
continue ;
882
882
}
@@ -945,8 +945,8 @@ pub fn run_cargo(
945
945
deps. extend ( additional_target_deps. into_iter ( ) . map ( |d| ( d, false ) ) ) ;
946
946
deps. sort ( ) ;
947
947
let mut new_contents = Vec :: new ( ) ;
948
- for ( dep, proc_macro ) in deps. iter ( ) {
949
- new_contents. extend ( if * proc_macro { b"h" } else { b"t" } ) ;
948
+ for ( dep, host_dep ) in deps. iter ( ) {
949
+ new_contents. extend ( if * host_dep { b"h" } else { b"t" } ) ;
950
950
new_contents. extend ( dep. to_str ( ) . unwrap ( ) . as_bytes ( ) ) ;
951
951
new_contents. extend ( b"\0 " ) ;
952
952
}
0 commit comments