Skip to content

Commit cefde96

Browse files
committed
undef __linux__
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 703bc09 commit cefde96

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/toolchain.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ pub fn cflags(args: &Args) -> OsString {
8383
// terrible hack, see
8484
// https://github.com/hyperlight-dev/hyperlight/blob/main/src/hyperlight_guest_bin/build.rs#L80
8585
"--target=x86_64-unknown-linux-none",
86+
"-U__linux__",
8687
// We don't support stack protectors at the moment, but Arch Linux clang
8788
// auto-enables them for -linux platforms, so explicitly disable them.
8889
"-fno-stack-protector",

0 commit comments

Comments
 (0)