]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/profile/Makefile
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / run-make-fulldeps / profile / Makefile
1 # needs-profiler-support
2
3 include ../tools.mk
4
5 all:
6         $(RUSTC) -g -Z profile test.rs
7         $(call RUN,test) || exit 1
8         [ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1)
9         [ -e "$(TMPDIR)/test.gcda" ] || (echo "No .gcda file"; exit 1)
10         $(RUSTC) -g -Z profile -Z profile-emit=$(TMPDIR)/abc/abc.gcda test.rs
11         $(call RUN,test) || exit 1
12         [ -e "$(TMPDIR)/abc/abc.gcda" ] || (echo "gcda file not emitted to defined path"; exit 1)