forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up handling of -Zpgo-gen commandline option.
- Loading branch information
1 parent
3750348
commit 7b1df42
Showing
9 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
-include ../tools.mk | ||
|
||
# ignore-windows | ||
|
||
all: | ||
ifeq ($(PROFILER_SUPPORT),1) | ||
$(RUSTC) -Copt-level=3 -Clto=fat -Z pgo-gen="$(TMPDIR)/test.profraw" test.rs | ||
$(RUSTC) -Copt-level=3 -Clto=fat -Z pgo-gen="$(TMPDIR)" test.rs | ||
$(call RUN,test) || exit 1 | ||
[ -e "$(TMPDIR)/test.profraw" ] || (echo "No .profraw file"; exit 1) | ||
[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
-include ../tools.mk | ||
|
||
# ignore-windows | ||
|
||
all: | ||
ifeq ($(PROFILER_SUPPORT),1) | ||
$(RUSTC) -g -Z pgo-gen="$(TMPDIR)/test.profraw" test.rs | ||
$(RUSTC) -g -Z pgo-gen="$(TMPDIR)" test.rs | ||
$(call RUN,test) || exit 1 | ||
[ -e "$(TMPDIR)/test.profraw" ] || (echo "No .profraw file"; exit 1) | ||
[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1) | ||
endif |