Repository navigation
MSVC Features - #987
MSVC Features#987orgads wants to merge 6 commits into
Conversation
c35ff3d to
08afcd1
Compare
|
My commit should already be merged. I don't know why it's being referenced. See #506 |
c534c53 to
9dccf6b
Compare
It looks like there are some changes here (additional flags supported with |
It creates a bit of confusion. But having both |
This more or less maps to PCH support for GCC/Clang, just handle the /Yu and /Fp options. Note that MSVC is apparently unable to generate the same PCH from the same sources, just like GCC, so a rebuild that also rebuilds the PCH will get cache misses. So either somebody can add support for -Yc (if caching those huge PCHs is a good idea), or CCACHE_PCH_EXTSUM can be used (with a checksum based on preprocessed PCH input, i.e. -E instead of -c -Yc).
Based on -showIncludes, which prints included files on stdout with a certain text prefix. Otherwise pretty similar to depend mode handling for GCC. This makes MSVC building way faster.
Without this, clang-cl is detected as clang and then ccache barfs because clang-cl produces stdout output. Since clang-cl is technically sort of cl and and sort of clang, add is_compiler_group_cl() and is_compiler_group_clang() to check similar compilers easily instead of enumerating them repeatedly.
While MSVC technically has that option as deprecated, it's a source of trouble with the way ccache curently handles the option, and since it broke ccache's debug output, it was hard to find.
|
Done |
|
With this PR we can then update the page at https://ccache.dev/platform-compiler-language-support.html.
|
|
Thanks for driving the MSVC features forward. However, as mentioned in #952 (comment), I would prefer not to review and merge the features in a single PR.
The special handling of the |
|
Regarding the I'll split the other commits. |
This is a rebased version of #952.
Hope I got it right.