Skip to content

Commit 7da8ab8

Browse files
committed
rt: Turn on stack alignment checks for mac
1 parent 4ac3459 commit 7da8ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_upcall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// correctly. Strategically placed at entry to upcalls because they begin on
2020
// the rust stack and happen frequently enough to catch most stack changes,
2121
// including at the beginning of all landing pads.
22-
// FIXME: Only seems to work on linux
23-
#ifdef __linux__
22+
// FIXME: Enable this for windows
23+
#if defined __linux__ || defined __APPLE__
2424
extern "C" void
2525
check_stack_alignment() __attribute__ ((aligned (16)));
2626
#else

0 commit comments

Comments
 (0)