Skip to content

compiletest: inject LLVM_PROFILE_FILE when COMPILETEST_LLVM_PROFILE_DIR is set#155117

Open
Ayuse wants to merge 1 commit intorust-lang:mainfrom
Ayuse:compiletest-profraw-inject
Open

compiletest: inject LLVM_PROFILE_FILE when COMPILETEST_LLVM_PROFILE_DIR is set#155117
Ayuse wants to merge 1 commit intorust-lang:mainfrom
Ayuse:compiletest-profraw-inject

Conversation

@Ayuse
Copy link
Copy Markdown

@Ayuse Ayuse commented Apr 10, 2026

When COMPILETEST_LLVM_PROFILE_DIR is set, compiletest now forward LLVM_PROFILE_FILE to each rustc invocation so it writes a per-process .profraw file to that directory. The %p in the filename ensures concurrent rustc processes don't collide.

This is fully opt-in — normal test runs are unaffected.
Useful for collecting compiler coverage data across the full test suite.
r? @jackh726

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 10, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants