Comments (5)
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.
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.
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.
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.
Line 5 in 96bc4cd
I already have a syncVersion
function used to sync LLVM tools. We can use the same thing for syncing Gcovr and Gcc
Line 126 in 96bc4cd
from setup-cpp.
So, I think we need to add the GCOV
environment variable based on the GCC version installed.
from setup-cpp.
Related Issues (20)
- Matching the official stdc++ version on Ubuntu? HOT 5
- CMake version v3.26.4 don't support cmake workflow presets
- /usr/bin/bash: line 167: gcovr: command not found HOT 6
- Only install clang-format HOT 6
- Problems with ubuntu:20.04 HOT 2
- MSVC installation successes but can't be found HOT 1
- pipx installs packages for root instead of SUDO_USER when run with `sudo`
- Thank you very much HOT 1
- Question: Can we cache the installation folders HOT 1
- add llvm 18 support HOT 2
- Add FlawFinder, Lizard, and Cpplint
- Node.js 16 actions are deprecated HOT 1
- Intermittent warnings during installation (Ubuntu) HOT 1
- macos 11 with llvm 14 broken HOT 6
- Ubuntu LLVM 18 conflicts with LLVM 17 HOT 1
- Support llvm-17/16/15 on Macos HOT 10
- LLVM Windows-Runner
- error: externally-managed-environment - Error: gcovr failed to install HOT 3
- Error: Command failed with ENOENT: /usr/local/bin/brew install make HOT 1
- The setup-cpp action wrongly installs Windows LLVMs to the same folder HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-cpp.