In a recent PR in the OSS VTK repository, there was work to add a PCH which improved build time.
During this process, we found that there was an issue where sccache was incorrectly handling the -Xarch_* argument such that builds were failing with the following error:
c++: error: argument to '-Xarch_arm64' is missing (expected 1 value)
c++: error: argument to '-Xarch_x86_64' is missing (expected 1 value)
The full portion of the -Xarch_* argument was -Xarch_* -include<path>.
This also seems to have affected the kitware/cmake repository at some point in the past, as there is a comment in this file indicating the same issue.
This happened on both mac arm64 machines and macx86_64 machines.