Skip to content

Commit 5458d7d

Browse files
committed
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).
2 parents b42ea7f + 1bd3184 commit 5458d7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rt/rust_task.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@
175175
#define RED_ZONE_SIZE RZ_MAC_32
176176
#endif
177177

178+
#ifndef RED_ZONE_SIZE
179+
# error "Red zone not defined for this platform"
180+
#endif
181+
178182
struct frame_glue_fns {
179183
uintptr_t mark_glue_off;
180184
uintptr_t drop_glue_off;

0 commit comments

Comments
 (0)