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 8
8
//! LLVM and compiler-rt are essentially just wired up to everything else to
9
9
//! ensure that they're always in place if needed.
10
10
11
- use std:: env;
12
11
use std:: env:: consts:: EXE_EXTENSION ;
13
12
use std:: ffi:: { OsStr , OsString } ;
14
- use std:: fs:: { self , File } ;
15
13
use std:: path:: { Path , PathBuf } ;
16
14
use std:: sync:: OnceLock ;
15
+ use std:: { env, fs} ;
17
16
18
17
use build_helper:: ci:: CiEnv ;
19
18
use build_helper:: git:: get_closest_merge_commit;
@@ -1015,8 +1014,9 @@ impl Step for Lld {
1015
1014
}
1016
1015
1017
1016
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 ( ) {
1020
1020
return out_dir;
1021
1021
}
1022
1022
@@ -1091,7 +1091,7 @@ impl Step for Lld {
1091
1091
1092
1092
cfg. build ( ) ;
1093
1093
1094
- t ! ( File :: create ( & done_stamp) ) ;
1094
+ t ! ( done_stamp. write ( ) ) ;
1095
1095
out_dir
1096
1096
}
1097
1097
}
You can’t perform that action at this time.
0 commit comments