0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00

build: remove symlink on Windows before creating it (#1516)

This commit is contained in:
Bartek Iwańczuk 2024-07-06 00:23:09 +01:00 committed by GitHub
parent 06c7eb0e81
commit 0c7be7285c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -848,7 +848,8 @@ fn maybe_symlink_root_dir(dirs: &mut Dirs) {
Ok(existing) if existing == target => break,
Ok(_) => remove_dir(symlink).expect("remove_dir failed"),
Err(_) => {
break symlink_dir(target, symlink).expect("symlink_dir failed")
let _ = remove_dir(symlink);
break symlink_dir(target, symlink).expect("symlink_dir failed");
}
}
}