Skip to content

Commit ffd4c5b

Browse files
committed
migrate lld build stamp
Signed-off-by: onur-ozkan <[email protected]>
1 parent bdb7518 commit ffd4c5b

File tree

1 file changed

+5
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-5
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
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;
1211
use std::env::consts::EXE_EXTENSION;
1312
use std::ffi::{OsStr, OsString};
14-
use std::fs::{self, File};
1513
use std::path::{Path, PathBuf};
1614
use std::sync::OnceLock;
15+
use std::{env, fs};
1716

1817
use build_helper::ci::CiEnv;
1918
use 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
}

0 commit comments

Comments
 (0)