summaryrefslogtreecommitdiffstats
path: root/tests/run-make/dump-mono-stats/Makefile
blob: fe1112fb0a4a8463827cb7cb2e3e9ebbf30cc80b (plain)
1
2
3
4
5
include ../../run-make-fulldeps/tools.mk

all:
	$(RUSTC) --crate-type lib foo.rs -Z dump-mono-stats=$(TMPDIR) -Zdump-mono-stats-format=json
	cat $(TMPDIR)/foo.mono_items.json | $(CGREP) '"name":"bar"'