about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-01 23:09:36 -0700
committerbors <bors@rust-lang.org>2013-05-01 23:09:36 -0700
commit5458d7dddda38f063220a19191373faecf11065f (patch)
tree119792c70d9d8af3eab6a71135a0330ae1d1a4ee
parentb42ea7f9ef06be9a623a8a007ae3aecbb7d961a3 (diff)
parent1bd318421e4fb4252074f2963ab77dddec7949ac (diff)
downloadrust-5458d7dddda38f063220a19191373faecf11065f.tar.gz
rust-5458d7dddda38f063220a19191373faecf11065f.zip
auto merge of #6175 : Aatch/rust/red-zone-warn, r=sanxiyn
This has happened to two people trying to get Rust working on other platforms. Since it won't compile either way, make a nicer message for it (which will also point them straight to the correct file).
-rw-r--r--src/rt/rust_task.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h
index 4aa1199cabc..fd4e8451b64 100644
--- a/src/rt/rust_task.h
+++ b/src/rt/rust_task.h
@@ -175,6 +175,10 @@
 #define RED_ZONE_SIZE RZ_MAC_32
 #endif
 
+#ifndef RED_ZONE_SIZE
+# error "Red zone not defined for this platform"
+#endif
+
 struct frame_glue_fns {
     uintptr_t mark_glue_off;
     uintptr_t drop_glue_off;