Skip to content

Commit e9b327d

Browse files
committed
Add config.toml to hyperlight_guest_bin so it builds standalone on windows
Signed-off-by: Simon Davies <[email protected]>
1 parent 1c6645b commit e9b327d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
target = "x86_64-unknown-none"

src/hyperlight_guest_bin/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ fn cargo_main() {
9595
cfg.flag("-mstack-probe-size=4096");
9696
cfg.compiler("clang");
9797

98-
unsafe { env::set_var("AR_x86_64_unknown_none", "llvm-ar") };
98+
if cfg!(windows) {
99+
unsafe { env::set_var("AR_x86_64_unknown_none", "llvm-ar") };
100+
}
99101
cfg.compile("hyperlight_guest_bin");
100102
}
101103

0 commit comments

Comments
 (0)