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:
parent
06c7eb0e81
commit
0c7be7285c
1 changed files with 2 additions and 1 deletions
3
build.rs
3
build.rs
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue