Repository navigation
cargo-llvm-cov: add 0.9.2 - #1612
Merged
Merged
Conversation
`cargo llvm-cov` (taiki-e/cargo-llvm-cov) for the fv-lab loadout, built from the published crate with our `rust` (--locked against the crate's Cargo.lock; upstream commits none). Ships only the cargo subcommand: no toolchain, no LLVM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 38 minutes for your next included review. View limit details
|
norrietaylor
approved these changes
Nov 21, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
cargo-llvm-cov0.9.2, the latest release (taiki-e/cargo-llvm-cov), for the fv-lab formal-verification loadout. It is built from source with ourrustand follows the cargo-nextest / wasm-bindgen-cli pattern:--lockedand--remap-path-prefix. It ships onlyusr/bin/cargo-llvm-cov, with runtime depsglibcandsubsetOf gcc ["libgcc"]. It brings no toolchain and no LLVM.Changes
packages/cargo-llvm-cov/: the source is the published crate,static.crates.io/.../cargo-llvm-cov-0.9.2.crate(sha256079b7461…871e, which matches the crates.io API checksum). It is not the GitHub tag archive, because upstream commits noCargo.lock. Only the .crate carries the lock it was released with, so--lockedneeds it..crate, so a bump would fetch the lock-less tag archive. A direct, sha-pinned crates.io URL keeps the updater working. wasm-bindgen-cli already uses it.cargo-llvm-cov llvm-cov --versionmust print exactlycargo-llvm-cov 0.9.2, and--helpmust list--lcov.Testing
minsession:min package build --rebuild --verbose cargo-llvm-covfinished, andmin checkwas all Pass. amd64 is up to build-bot.cargo-llvm-cov+rust-nightly-charon+llvm+toolchain:LLVM_COV=/usr/bin/llvm-cov LLVM_PROFDATA=/usr/bin/llvm-profdata cargo llvm-cov --offlinereports 12 regions, 2 missed (83.33%). The^0markers fall on the two untaken branches, which is correct.failed to find llvm-tools-preview, please install llvm-tools-preview, or set LLVM_COV and LLVM_PROFDATA.LLVM / toolchain compatibility (findings, no change here)
cargo llvm-covneedsllvm-covandllvm-profdatawith the same LLVM major as the rustc that builds the code. It looks for them in$(rustc --print target-libdir)/../bin, which is where rustup'sllvm-toolscomponent installs them. Failing that, it readsLLVM_COVandLLVM_PROFDATA. It never downloads anything; it only suggestsrustup component addwhen rustup is installed.rust-nightly-charon(nightly 2026-09-17,1.100.0-nightly)libLLVM.so.23.1-rust-1.100.0-nightly)libprofiler_builtinsin rust-std)LLVM_COV/LLVM_PROFDATApointed at ourllvm23.1.5 (same major). Verified above.rust1.100.0 (stable, from source)llvm)-C instrument-coveragefails withE0463: can't find crate for profiler_builtins("the compiler may have been built without the profiler runtime").What's needed:
llvm-tools-nightlycomponent (same date) torust-nightly-charon. Itsllvm-covandllvm-profdataland inlib/rustlib/<host>/bin, which cargo-llvm-cov finds without configuration, and they always match rustc's LLVM exactly.llvmto the loadout and setLLVM_COV=/usr/bin/llvm-cov LLVM_PROFDATA=/usr/bin/llvm-profdata. This works today, but it pulls in the whole llvm/clang package, and the match holds only while both stay on LLVM 23.rust: the package needs the profiler runtime. Ourllvmalready ships/usr/lib/clang/23/lib/<triple>/libclang_rt.profile.a. Settingprofiler = "<that path>"per target inpackages/rust/bootstrap.tomlshould be enough;[build] profiler = trueinstead builds it from the vendored compiler-rt.rustalready runtime-depends onllvm, so/usr/bin/llvm-covis present wherever rust is. Optionally, symlinkingllvm-covandllvm-profdataintousr/lib/rustlib/<host>/binwould make discovery automatic.Neither change is made here;
rust-nightly-charonandrustare untouched.Notes for reviewers
subsetOf gcc ["libgcc"]. This becomesgcc-runtimeonce gcc 15.2.0 → 16.2.0, with gcc-runtime split out (pm#1182) #1545 lands.rustcan't do one yet (finding 2 above), and makingrust-nightly-charon+llvmtest deps seemed too heavy for a smoke test. Oncerusthas the profiler, the test is easy to add.🤖 Generated with Claude Code