Skip to content

Commit 2f102ba

Browse files
committed
Only use general purpose registers, since clang otherwise will use XMM registers for passing floats to rust functions that don't expect it
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent ae7b6fd commit 2f102ba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

c.just

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ c-flags-release-pe := '/O2 /Gy'
99

1010
# Elf options
1111
# We don't support stack protectors at the moment, but Arch Linux clang auto-enables them for -linux platforms, so explicitly disable them.
12-
c-compile-options-elf := '-nobuiltininc -H --target=x86_64-unknown-linux-none -fno-stack-protector -fstack-clash-protection -mstack-probe-size=4096'
12+
c-compile-options-elf := '-mgeneral-regs-only -nobuiltininc -H --target=x86_64-unknown-none -fPIC -fno-stack-protector -fstack-clash-protection -mstack-probe-size=4096'
1313
c-include-flags-elf := replace(c-include-flags-pe, '/I ', '-I ')
1414
c-linker-options-elf := '--entry "entrypoint" --nostdlib -pie'
1515
c-flags-debug-elf := '-O0'

src/hyperlight_host/tests/sandbox_host_tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ fn pass_byte_array() {
6363
}
6464

6565
#[test]
66-
#[ignore = "Fails with mismatched float only when c .exe guest?!"]
6766
#[cfg_attr(target_os = "windows", serial)] // using LoadLibrary requires serial tests
6867
fn float_roundtrip() {
6968
let doubles = [

0 commit comments

Comments
 (0)