diff --git a/Cargo.lock b/Cargo.lock index b9d794cd..6eed4fcd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1452,7 +1452,7 @@ checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" [[package]] name = "v8" -version = "0.97.0" +version = "0.97.1" dependencies = [ "align-data", "bindgen", diff --git a/Cargo.toml b/Cargo.toml index 67b0a0b8..260b9aa6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "v8" -version = "0.97.0" +version = "0.97.1" description = "Rust bindings to V8" readme = "README.md" authors = ["the Deno authors"] diff --git a/build.rs b/build.rs index 212aa5f5..85565690 100644 --- a/build.rs +++ b/build.rs @@ -824,7 +824,7 @@ fn maybe_symlink_root_dir(dirs: &mut Dirs) { // different drive than the output. If this is the case we'll create a // symlink called "gn_root' in the out directory, next to 'gn_out', so it // appears as if they're both on the same drive. - use std::fs::remove_dir; + use std::fs::remove_dir_all; use std::os::windows::fs::symlink_dir; let get_prefix = |p: &Path| { @@ -846,9 +846,9 @@ fn maybe_symlink_root_dir(dirs: &mut Dirs) { loop { match symlink.canonicalize() { Ok(existing) if existing == target => break, - Ok(_) => remove_dir(symlink).expect("remove_dir failed"), + Ok(_) => remove_dir_all(symlink).expect("remove_dir_all failed"), Err(_) => { - let _ = remove_dir(symlink); + let _ = remove_dir_all(symlink); break symlink_dir(target, symlink).expect("symlink_dir failed"); } }