Giter Site home page Giter Site logo

Comments (5)

Spacetown avatar Spacetown commented on July 18, 2024 1

I already have a syncVersion function used to sync LLVM tools. We can use the same thing for syncing Gcovr and Gcc

You need to sync gcov (no r at the end) and GCC.

from setup-cpp.

aminya avatar aminya commented on July 18, 2024

Is this because multiple gcov versions are installed? If that's the case, we should probably set an environment variable in .cpprc when using setup-cpp.

from setup-cpp.

SK83RJOSH avatar SK83RJOSH commented on July 18, 2024

Yeah, in my case I had build-essentials (which installs GCC-11) and GCC-12 (via setup-cpp) which lead to empty coverage reports on Ubuntu/macOS. I'd say fixing this in setup-cpp would be the most ideal, though. It's a bit too easy to not notice things are broken, it took me nearly a month. 😅

Somewhat ironically I ran into a GCC bug when using Catch2 as a system library after fixing this in my workflow. The combination of -isystem with sources that have private includes seems to break gcov, which in turn breaks gcovr. Not sure if this should be mentioned in project_options as a potential issue, nor do I know where to raise this issue on the GCC side of things. It's a real nasty one to debug.

from setup-cpp.

aminya avatar aminya commented on July 18, 2024

Thanks for the explanation. I merged aminya/cpp_vcpkg_project#18 as the temporary fix.
We should implement the permanent fix here in setup-cpp.

return setupPipPack("gcovr", version)

I already have a syncVersion function used to sync LLVM tools. We can use the same thing for syncing Gcovr and Gcc

if (!syncVersions(opts, ["llvm", "clangtidy", "clangformat"])) {

from setup-cpp.

aminya avatar aminya commented on July 18, 2024

So, I think we need to add the GCOV environment variable based on the GCC version installed.

from setup-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.