File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 88//! LLVM and compiler-rt are essentially just wired up to everything else to
99//! ensure that they're always in place if needed.
1010
11- use std:: env;
1211use std:: env:: consts:: EXE_EXTENSION ;
1312use std:: ffi:: { OsStr , OsString } ;
14- use std:: fs:: { self , File } ;
1513use std:: path:: { Path , PathBuf } ;
1614use std:: sync:: OnceLock ;
15+ use std:: { env, fs} ;
1716
1817use build_helper:: ci:: CiEnv ;
1918use build_helper:: git:: get_closest_merge_commit;
@@ -1015,8 +1014,9 @@ impl Step for Lld {
10151014 }
10161015
10171016 let out_dir = builder. lld_out ( target) ;
1018- let done_stamp = out_dir. join ( "lld-finished-building" ) ;
1019- if done_stamp. exists ( ) {
1017+
1018+ let done_stamp = BuildStamp :: new ( & out_dir) . with_prefix ( "lld" ) ;
1019+ if done_stamp. as_ref ( ) . exists ( ) {
10201020 return out_dir;
10211021 }
10221022
@@ -1091,7 +1091,7 @@ impl Step for Lld {
10911091
10921092 cfg. build ( ) ;
10931093
1094- t ! ( File :: create ( & done_stamp) ) ;
1094+ t ! ( done_stamp. write ( ) ) ;
10951095 out_dir
10961096 }
10971097}
You can’t perform that action at this time.
0 commit comments