pgo: Move the tests to run-make-fulldeps, and make the profile file be in the tmp directory properly.

This commit is contained in:
Emilio Cobos Álvarez 2018-03-25 03:29:15 +02:00
parent 96b87296ce
commit 5af2f80fdd
No known key found for this signature in database
GPG Key ID: 056B727BB9C1027C
4 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
all:
ifeq ($(PROFILER_SUPPORT),1)
$(RUSTC) -Copt-level=3 -Clto=fat -Z pgo-gen=test.profraw test.rs
$(RUSTC) -Copt-level=3 -Clto=fat -Z pgo-gen="$(TMPDIR)/test.profraw" test.rs
$(call RUN,test) || exit 1
[ -e "$(TMPDIR)/test.profraw" ] || (echo "No .profraw file"; exit 1)
endif

View File

@ -2,7 +2,7 @@
all:
ifeq ($(PROFILER_SUPPORT),1)
$(RUSTC) -g -Z pgo-gen=test.profraw test.rs
$(RUSTC) -g -Z pgo-gen="$(TMPDIR)/test.profraw" test.rs
$(call RUN,test) || exit 1
[ -e "$(TMPDIR)/test.profraw" ] || (echo "No .profraw file"; exit 1)
endif