Skip to content

Commit c9abf27

Browse files
committed
Define HYPERLIGHT
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 286fcba commit c9abf27

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/toolchain.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ pub fn cflags(args: &Args) -> OsString {
9191
"-mstack-probe-size=4096",
9292
"-mno-red-zone",
9393
"-nostdinc",
94+
// Define HYPERLIGHT as we use this to conditionally enable/disable code
95+
// in the libc headers
96+
"-DHYPERLIGHT=1",
97+
"-D__HYPERLIGHT__=1",
9498
];
9599

96100
let mut flags = OsString::new();

0 commit comments

Comments
 (0)