2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2018-09-13 20:25:58 +02:00
|
|
|
|
2019-01-06 16:27:57 -05:00
|
|
|
# ignore-windows
|
|
|
|
# ignore-macos
|
|
|
|
#
|
2018-09-26 16:22:52 +02:00
|
|
|
# This feature only works when the output object format is ELF so we ignore
|
|
|
|
# macOS and Windows
|
2019-01-06 16:27:57 -05:00
|
|
|
|
2018-09-13 20:25:58 +02: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
|