2019-04-18 08:49:41 -05:00
|
|
|
# needs-profiler-support
|
2023-08-30 06:45:57 -05:00
|
|
|
# ignore-cross-compile
|
2019-04-18 08:49:41 -05:00
|
|
|
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2017-02-13 03:57:50 -06:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTC) -g -Z profile test.rs
|
|
|
|
$(call RUN,test) || exit 1
|
|
|
|
[ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1)
|
|
|
|
[ -e "$(TMPDIR)/test.gcda" ] || (echo "No .gcda file"; exit 1)
|
2020-05-26 12:41:40 -05:00
|
|
|
$(RUSTC) -g -Z profile -Z profile-emit=$(TMPDIR)/abc/abc.gcda test.rs
|
|
|
|
$(call RUN,test) || exit 1
|
|
|
|
[ -e "$(TMPDIR)/abc/abc.gcda" ] || (echo "gcda file not emitted to defined path"; exit 1)
|