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

-Xclang -fno-pch-timestamp disables caching with clang #1720

Closed
craigscott-crascit opened this issue Apr 12, 2023 · 0 comments · Fixed by #1721
Closed

-Xclang -fno-pch-timestamp disables caching with clang #1720

craigscott-crascit opened this issue Apr 12, 2023 · 0 comments · Fixed by #1721

Comments

@craigscott-crascit
Copy link
Contributor

When PCH generation is enabled with clang, the -Xclang -fno-pch-timestamp flags most likely should be used (for background, see the ccache docs which mention this). Projects that are supporting both ccache and sccache, or that are switching from ccache to sccache, may already have -Xclang -fno-pch-timestamp being added. Since it may legitimately be present, sccache should ideally handle that, but right now it rejects it with the dreaded "Can't handle UnknownFlag arguments with -Xclang" error.

This appears to be a very similar case to #1266. I suspect a fix very similar in nature to #1547 can be applied here as well for -fno-pch-timestamp.

craigscott-crascit added a commit to craigscott-crascit/sccache that referenced this issue Apr 12, 2023
craigscott-crascit added a commit to craigscott-crascit/sccache that referenced this issue Apr 12, 2023
sylvestre pushed a commit that referenced this issue Apr 24, 2023
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

Successfully merging a pull request may close this issue.

1 participant