taiki-e / cargo-llvm-cov

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

Windows support #14

Closed taiki-e closed 3 years ago

taiki-e commented 3 years ago

UPDATE: In the current main, the below error is no longer exists, but there is still a problem that the dependency files cannot be properly excluded from the report.

cargo-llvm-cov can be compiled on windows, but it is not working well yet.

https://github.com/taiki-e/cargo-llvm-cov/runs/2747955205?check_suite_focus=true

error: D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\easytime-55f5f70e39c59f9b.exe, D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\easytime-55f5f70e39c59f9b.pdb, D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\duration-f109b2421656fc14.exe, D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\duration-f109b2421656fc14.pdb, D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\instant-fd5bd861f01c3046.exe, D:\a\cargo-llvm-cov\cargo-llvm-cov\easytime\target\llvm-cov-target\debug\deps\instant-fd5bd861f01c3046.pdb: Failed to load coverage: The file was not recognized as a valid object file
taiki-e commented 3 years ago

UPDATE: In the current main, the above error is no longer exists, but there is still a problem that the dependency files cannot be properly excluded from the report.