Removing -fsyntax-only means that no output is generated, and ccache won't cache anything, so everything gets re-compiled every time. It turns out that the code generation part of this costs essentially nothing. All the time is spent in parsing and semantic checks, and turning off -fsyntax-only doesn't save anything you would notice.
I guess we could change the script to compile the headers directly, yes.
Removing -fsyntax-only means that no output is generated, and ccache won't cache anything, so everything gets re-compiled every time. It turns out that the code generation part of this costs essentially nothing. All the time is spent in parsing and semantic checks, and turning off -fsyntax-only doesn't save anything you would notice.
I guess we could change the script to compile the headers directly, yes.