Open
Description
git clone https://github.com/matthiaskrgr/cargo-cache
cd cargo-cache
RUSTFLAGS="-Cprofile-generate=target/pgodata" cargo build --release
./target/release/cargo-cache
./target/release/cargo-cache
./target/release/cargo-cache q hello
./target/release/cargo-cache r
./target/release/cargo-cache --top-cache-items 10
llvm-profdata merge -o target/merged.profdata ./target/pgodata/
file target/merged.profdata
# target/merged.profdata: LLVM indexed profile data, version 5
RUSTFLAGS="-Cprofile-use=target/merged.profdata" cargo build --release -j 1
Compiling serde v1.0.98
error: File `target/merged.profdata` passed to `-C profile-use` does not exist.
error: aborting due to previous error
error: Could not compile `serde`.
To learn more, run the command again with --verbose.
The file is definitely there, but for some reason it is not found??
rustc 1.38.0-nightly (c43d03a19 2019-08-14)
Metadata
Metadata
Assignees
Labels
Area: Profile-guided optimizations (PGO)Area: Messages for errors, warnings, and lintsArea: Compiler frontend (errors, parsing and HIR)Category: An issue proposing an enhancement or a PR with one.Relevant to the cargo team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.