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 caching of additional compiler output like diagnostics #1466

Open
anotherandi opened this issue Jun 11, 2024 · 0 comments
Open

Support caching of additional compiler output like diagnostics #1466

anotherandi opened this issue Jun 11, 2024 · 0 comments
Labels
feature New or improved feature

Comments

@anotherandi
Copy link

Actual behavior

When I run gcc to emit Sarif output with the following command, a test.o file and an addtional test.cpp.sarif file will be written to disk.

ccache gcc -c ../test.cpp -fdiagnostics-format=sarif-file

When I delete the outputs and run the same command again ccache will only recreate the test.o, but the test.cpp.sarif is missing.

Expected behavior

I would be great if ccache could also cache the sarif output.
ccache already supports caching of dependency files, which is a quite similar functionality.
Maybe its best to have a generic/configurable functionality for this, since every compiler may has different "byproducts".

Environment

ccache version 4.9.1
gcc 13.2

References

https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html#index-fdiagnostics-format

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

No branches or pull requests

1 participant