]> git.proxmox.com Git - rustc.git/blob - src/test/run-make/no-stack-check/Makefile
Imported Upstream version 1.0.0~beta.3
[rustc.git] / src / test / run-make / no-stack-check / Makefile
1 -include ../tools.mk
2
3
4 ifndef IS_WINDOWS
5
6 SKIP_OS := 'OpenBSD Bitrig'
7 ifneq ($(UNAME),$(findstring $(UNAME),$(SKIP_OS)))
8
9 all:
10 $(RUSTC) -O --emit asm attr.rs
11 ! grep -q morestack $(TMPDIR)/attr.s
12 $(RUSTC) -O --emit asm flag.rs
13 grep -q morestack $(TMPDIR)/flag.s
14 $(RUSTC) -O --emit asm -C no-stack-check flag.rs
15 ! grep -q morestack $(TMPDIR)/flag.s
16 else
17 # On Bitrig/OpenBSD, morestack isn't used as the segmented stacks are disabled
18 all:
19 endif
20
21 else
22 # On Windows we use __chkstk and it only appears in functions with large allocations,
23 # so this test wouldn't be reliable.
24 all:
25 endif