You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Disclaimer: a little more investigation is needed, this is a placeholder ticket and may not be fully accurate - please clarify misunderstandings if you notice them.)
Currently, for some compilers such as MSVC, we need to handle each flag independently. If there's an unknown flag, sccache fails, and therefore we need to do changes such as this one to teach sccache about them.
However, for at least gcc, it sounds like we default to assuming that unknown flags are PassThrough, and perhaps that approach should be applied to other compilers, such as how it's been done in this user repo.
Questions:
Are we indeed assuming that unknown flags are PassThrough for gcc here in the main sccache repo, or was that just applied downstream?
Is assuming that unknown flags are PassThrough better than failing upon encountering them? Is there a better solution?
Is the "better" solution different for different compilers?
The text was updated successfully, but these errors were encountered:
I was a bit surprised to find that GCC::parse_arguments() seems to treat unknown arguments as always cacheable. Is that on purpose? It seems like a somewhat dangerous default.
About that, I'm testing sccache with nvcc (which uses GCC argument parser) and this is not the behaviour I'm observing, at least on commit 2940944. Specifically, adding/removing flags like -lineinfo or --resource-usage results in cache misses. Or am I thinking about a different thing?
(Disclaimer: a little more investigation is needed, this is a placeholder ticket and may not be fully accurate - please clarify misunderstandings if you notice them.)
Currently, for some compilers such as MSVC, we need to handle each flag independently. If there's an unknown flag,
sccache
fails, and therefore we need to do changes such as this one to teachsccache
about them.However, for at least
gcc
, it sounds like we default to assuming that unknown flags arePassThrough
, and perhaps that approach should be applied to other compilers, such as how it's been done in this user repo.Questions:
PassThrough
forgcc
here in the mainsccache
repo, or was that just applied downstream?PassThrough
better than failing upon encountering them? Is there a better solution?The text was updated successfully, but these errors were encountered: