Skip to content

Commit 5af2f80

Browse files
committed
pgo: Move the tests to run-make-fulldeps, and make the profile file be in the tmp directory properly.
1 parent 96b8729 commit 5af2f80

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

src/test/run-make/pgo-gen-lto/Makefile src/test/run-make-fulldeps/pgo-gen-lto/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

src/test/run-make/pgo-gen/Makefile src/test/run-make-fulldeps/pgo-gen/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
all:
44
ifeq ($(PROFILER_SUPPORT),1)
5-
$(RUSTC) -g -Z pgo-gen=test.profraw test.rs
5+
$(RUSTC) -g -Z pgo-gen="$(TMPDIR)/test.profraw" test.rs
66
$(call RUN,test) || exit 1
77
[ -e "$(TMPDIR)/test.profraw" ] || (echo "No .profraw file"; exit 1)
88
endif
File renamed without changes.

0 commit comments

Comments
 (0)