2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2018-09-13 13:25:58 -05:00
|
|
|
|
2019-01-06 15:27:57 -06: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
|
2019-01-06 15:27:57 -06:00
|
|
|
|
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
|