Skip to content

Commit f0b7e08

Browse files
committed
Use Junction instead of symlink on windows
Signed-off-by: Simon Davies <[email protected]>
1 parent d608a1d commit f0b7e08

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
@@ -75,6 +75,9 @@ anyhow = { version = "1.0" }
7575
goblin = "0.10.1"
7676
tar = "0.4.44"
7777

78+
[target.'cfg(windows)'.build-dependencies]
79+
junction = "1"
80+
7881
[features]
7982
default = ["function_call_metrics", "kvm", "mshv3"]
8083
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)