From ffd4c5b51ce61e0bf1e1f24e143a390a5fbded13 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sat, 11 Jan 2025 09:29:47 +0300 Subject: migrate lld build stamp Signed-off-by: onur-ozkan --- src/bootstrap/src/core/build_steps/llvm.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 7bf24675d06..1159ba71230 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -8,12 +8,11 @@ //! LLVM and compiler-rt are essentially just wired up to everything else to //! ensure that they're always in place if needed. -use std::env; use std::env::consts::EXE_EXTENSION; use std::ffi::{OsStr, OsString}; -use std::fs::{self, File}; use std::path::{Path, PathBuf}; use std::sync::OnceLock; +use std::{env, fs}; use build_helper::ci::CiEnv; use build_helper::git::get_closest_merge_commit; @@ -1015,8 +1014,9 @@ impl Step for Lld { } let out_dir = builder.lld_out(target); - let done_stamp = out_dir.join("lld-finished-building"); - if done_stamp.exists() { + + let done_stamp = BuildStamp::new(&out_dir).with_prefix("lld"); + if done_stamp.as_ref().exists() { return out_dir; } @@ -1091,7 +1091,7 @@ impl Step for Lld { cfg.build(); - t!(File::create(&done_stamp)); + t!(done_stamp.write()); out_dir } } -- cgit 1.4.1-3-g733a5