kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.25k stars 486 forks source link

How to add code-coverage compile flag such as -fprofile-arcs -ftest-coverage #410

Open Zrzzzz opened 1 year ago

kornelski commented 1 year ago

If you use the old C branch: https://github.com/kornelski/pngquant/tree/2.x then you can add it to CFLAGS or LDFLAGS.

For the new Rust version, you could try some of the tools that help setting rustc flags and manage llvm's data:

https://lib.rs/crates/cargo-llvm-cov

https://lib.rs/crates/grcov

https://lib.rs/crates/cargo-pgo