Skip to content

Commit 69c4636

Browse files
committed
Add missing unsafe scopes to hyperlight-guest build.rs
Signed-off-by: Simon Davies <[email protected]>
1 parent 7f6be50 commit 69c4636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperlight_guest/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ fn cargo_main() {
104104
}
105105

106106
if cfg!(windows) {
107-
env::set_var("AR_x86_64_unknown_none", "llvm-ar");
107+
unsafe {env::set_var("AR_x86_64_unknown_none", "llvm-ar")};
108108
} else {
109-
env::set_var("AR_x86_64_pc_windows_msvc", "llvm-lib");
109+
unsafe {env::set_var("AR_x86_64_pc_windows_msvc", "llvm-lib")};
110110
}
111111

112112
cfg.compile("hyperlight_guest");

0 commit comments

Comments
 (0)