about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-17 13:49:02 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-17 14:10:40 -0800
commit7da8ab8fab81781665fd38299645dc74a6d5ddd2 (patch)
tree931e070a433f8a70b2a137111d9603750c8e2bf2 /src/rt/rust_upcall.cpp
parent4ac345939c6b9cfbb463dffa3ff595f42d93beac (diff)
downloadrust-7da8ab8fab81781665fd38299645dc74a6d5ddd2.tar.gz
rust-7da8ab8fab81781665fd38299645dc74a6d5ddd2.zip
rt: Turn on stack alignment checks for mac
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index ec1e37bd85f..7b5dbd38bdd 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -19,8 +19,8 @@
 // correctly. Strategically placed at entry to upcalls because they begin on
 // the rust stack and happen frequently enough to catch most stack changes,
 // including at the beginning of all landing pads.
-// FIXME: Only seems to work on linux
-#ifdef __linux__
+// FIXME: Enable this for windows
+#if defined __linux__ || defined __APPLE__
 extern "C" void
 check_stack_alignment() __attribute__ ((aligned (16)));
 #else