Open jayvdb opened 1 month ago
cargo +nightly llvm-cov test --no-clean
cargo llvm-cov report
The first appears to be using nightly and the second perhaps stable.
The LLVM version used by the compiler that actually generates the profarw files and the LLVM tool that reads them (in this case, the LLVM tool included in the rustc that called report) must be compatible. In particular, LLVM 19 (prerelease version, used in recent nightly rustc) and 18 (used in the latest stable rustc), LLVM 18 and 17 (or earlier) are incompatible.
Yup, changing it to cargo +nightly llvm-cov report
fixed this problem.
Happy for this issue to be closed, unless there is some way for cargo-llvm-cov
to handle this better.
In my workflow, this succeeds, and the expected results are uploaded into our deepsource tracker. (https://github.com/taiki-e/cargo-llvm-cov/issues/375 still happens; I'll see if I can dig up some details that I can add to that)
But this fails in the same workflow with the same version of cargo-llvm-cov and all other binaries