summary refs log tree commit diff
path: root/tests/run-make/emit-stack-sizes/Makefile
blob: b546fcba5121e0bc4768d995f7c80aecd3bd1cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include ../tools.mk

# ignore-windows
# ignore-apple
#
# This feature only works when the output object format is ELF so we ignore
# Apple and Windows

# check that the .stack_sizes section is generated
all:
	$(RUSTC) -C opt-level=3 -Z emit-stack-sizes --emit=obj foo.rs
	size -A $(TMPDIR)/foo.o | $(CGREP) .stack_sizes