taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
882 stars 57 forks source link

docs: cross-testing on CI #295

Open taiki-e opened 1 year ago

taiki-e commented 1 year ago

When used together with setup-cross-toolchain-action, we can easily get coverage of the target different from the host.

It would be nice to document this in readme.

cwfitzgerald commented 7 months ago

An interesting thing I found when trying to go from x86 mac to aarch64 mac is that by default, llvm uses libz compression to compress part of the files. This is apparently not part of the llvm build on aarch64's llvm-tools, and you get errors about being unable to read the profraw files due to missing compression. Adding -C llvm-args=-enable-name-compression=false to RUSTFLAGS should fix that problem.

ShaneMurphy2 commented 1 month ago

An interesting thing I found when trying to go from x86 mac to aarch64 mac is that by default, llvm uses libz compression to compress part of the files. This is apparently not part of the llvm build on aarch64's llvm-tools, and you get errors about being unable to read the profraw files due to missing compression. Adding -C llvm-args=-enable-name-compression=false to RUSTFLAGS should fix that problem.

I got the same issue going from aarch64 mac to x86 linux