Rollup merge of #110485 - albertlarsan68:fix-bootstrap-lock, r=ozkanonur
Fix bootstrap locking Fix the regression introduced in #108607 Fixes #109967
This commit is contained in:
commit
aa1247ab20
1 changed files with 4 additions and 2 deletions
|
@ -16,9 +16,11 @@ fn main() {
|
|||
let config = Config::parse(&args);
|
||||
|
||||
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
|
||||
{
|
||||
let mut build_lock;
|
||||
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
|
||||
let _build_lock_guard;
|
||||
#[cfg(all(any(unix, windows), not(target_os = "solaris")))]
|
||||
{
|
||||
let path = config.out.join("lock");
|
||||
build_lock = fd_lock::RwLock::new(t!(std::fs::File::create(&path)));
|
||||
_build_lock_guard = match build_lock.try_write() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue