rust/tests/run-make/emit-stack-sizes/Makefile

13 lines
320 B
Makefile
Raw Normal View History

include ../tools.mk
2018-09-13 13:25:58 -05:00
# ignore-windows
# ignore-macos
#
2018-09-26 09:22:52 -05:00
# This feature only works when the output object format is ELF so we ignore
# macOS and Windows
2018-09-13 13:25:58 -05:00
# 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