Open cgytrus opened 8 months ago
Same for me... Is there a resolution for this?
+1. I also am facing this issue with sccache on Mac OS X.
Don't hesitate to propose a patch for this. AFAIK, we (Mozilla) aren't impacted by this.
Don't hesitate to propose a patch for this. AFAIK, we (Mozilla) aren't impacted by this.
I believe a patch wasn't proposed due to the issue mentioned, "obviously this isn't sustainable long-term, since it should actually parse 2 arguments from the option (arg1 and arg2) which doesn't seem to be possible right now."
I made a stab at a more generic fix in https://github.com/mozilla/sccache/pull/2265
@sylvestre please have a look, thanks!
I'm not sure what the exact conditions are, but CMake (sometimes?) generates
-Xarch_<arch>
before architecture-specific PCH includes with (both LLVM and Apple) Clang on macOS. The option's syntax is kind of weird (-Xarch_<arg1> <arg2>
Clang CLI ref) and it not being properly supported results in arguments getting reordered weirdly causing the following errors:I managed to work around the issue for my specific use case in this commit, but obviously this isn't sustainable long-term, since it should actually parse 2 arguments from the option (
arg1
andarg2
) which doesn't seem to be possible right now.