@@ -991,7 +991,7 @@ impl Step for Rustc {
991
991
true , // Only ship rustc_driver.so and .rmeta files, not all intermediate .rlib files.
992
992
) ;
993
993
994
- let target_root_dir = stamp. as_ref ( ) . parent ( ) . unwrap ( ) ;
994
+ let target_root_dir = stamp. path ( ) . parent ( ) . unwrap ( ) ;
995
995
// When building `librustc_driver.so` (like `libLLVM.so`) on linux, it can contain
996
996
// unexpected debuginfo from dependencies, for example from the C++ standard library used in
997
997
// our LLVM wrapper. Unless we're explicitly requesting `librustc_driver` to be built with
@@ -1478,7 +1478,7 @@ impl Step for CodegenBackend {
1478
1478
}
1479
1479
let stamp = build_stamp:: codegen_backend_stamp ( builder, compiler, target, & backend) ;
1480
1480
let codegen_backend = codegen_backend. to_str ( ) . unwrap ( ) ;
1481
- t ! ( fs :: write ( stamp, codegen_backend) ) ;
1481
+ t ! ( stamp. add_stamp ( codegen_backend) . write ( ) ) ;
1482
1482
}
1483
1483
}
1484
1484
@@ -1516,7 +1516,7 @@ fn copy_codegen_backends_to_sysroot(
1516
1516
}
1517
1517
1518
1518
let stamp = build_stamp:: codegen_backend_stamp ( builder, compiler, target, backend) ;
1519
- let dylib = t ! ( fs:: read_to_string( & stamp) ) ;
1519
+ let dylib = t ! ( fs:: read_to_string( stamp. path ( ) ) ) ;
1520
1520
let file = Path :: new ( & dylib) ;
1521
1521
let filename = file. file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) ;
1522
1522
// change `librustc_codegen_cranelift-xxxxxx.so` to
@@ -2018,7 +2018,7 @@ pub fn run_cargo(
2018
2018
rlib_only_metadata : bool ,
2019
2019
) -> Vec < PathBuf > {
2020
2020
// `target_root_dir` looks like $dir/$target/release
2021
- let target_root_dir = stamp. as_ref ( ) . parent ( ) . unwrap ( ) ;
2021
+ let target_root_dir = stamp. path ( ) . parent ( ) . unwrap ( ) ;
2022
2022
// `target_deps_dir` looks like $dir/$target/release/deps
2023
2023
let target_deps_dir = target_root_dir. join ( "deps" ) ;
2024
2024
// `host_root_dir` looks like $dir/release
@@ -2171,7 +2171,7 @@ pub fn run_cargo(
2171
2171
new_contents. extend ( dep. to_str ( ) . unwrap ( ) . as_bytes ( ) ) ;
2172
2172
new_contents. extend ( b"\0 " ) ;
2173
2173
}
2174
- t ! ( fs:: write( stamp, & new_contents) ) ;
2174
+ t ! ( fs:: write( stamp. path ( ) , & new_contents) ) ;
2175
2175
deps. into_iter ( ) . map ( |( d, _) | d) . collect ( )
2176
2176
}
2177
2177
0 commit comments