Skip to content

Commit 83ff69c

Browse files
authored
Use Junction instead of symlink on windows (#284)
Signed-off-by: Simon Davies <[email protected]>
1 parent c1a76f2 commit 83ff69c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/hyperlight_wasm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ anyhow = { version = "1.0" }
9797
goblin = "0.10.3"
9898
tar = "0.4.44"
9999

100+
[target.'cfg(windows)'.build-dependencies]
101+
junction = "1"
102+
100103
[features]
101104
default = ["function_call_metrics", "kvm", "mshv3"]
102105
function_call_metrics = ["hyperlight-host/function_call_metrics"]

src/hyperlight_wasm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn get_wasm_runtime_path() -> PathBuf {
8484
std::os::unix::fs::symlink(crates_dir, &vendor_dir).unwrap();
8585

8686
#[cfg(not(unix))]
87-
std::os::windows::fs::symlink_dir(crates_dir, &vendor_dir).unwrap();
87+
junction::create(crates_dir, &vendor_dir).unwrap();
8888

8989
let wasm_runtime_dir = crates_dir.join("wasm_runtime");
9090
if wasm_runtime_dir.exists() {

0 commit comments

Comments
 (0)