Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support older gcov versions (-x -> -p -> none) #3

Open
GitMensch opened this issue Jan 5, 2023 · 2 comments
Open

support older gcov versions (-x -> -p -> none) #3

GitMensch opened this issue Jan 5, 2023 · 2 comments

Comments

@GitMensch
Copy link
Contributor

gcov 7 introduced --hash-filenames (which is used as -x in the script).
gcovr checks once if this option is available (peeking into gcov's help), if it isn't then --preserve-paths (-p) is used instead (actually gcovr also checks for this option in the help and if it isn't available it uses neither of them and output a warning).

Can you please add the same behaviour? This would help in "legacy" environments where you can't easily update gcc (which sadly has to matches gcov).

@xiaoyun94
Copy link
Owner

do you mean add these into Fake Info

@GitMensch
Copy link
Contributor Author

That would likely need to be done, too, to pass the information.

But before we need to check if the gcov binary used "here" has this option. If it has: output it in "our" help, if it isn't then don't use it around line 80 but use -p instead (or do as gcovr and also check if this is available)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants