[ccache] Making ccache and clang compatible
joel at rosdahl.net
Thu Jul 19 15:34:48 MDT 2012
On 11 July 2012 14:42, Max Horn <max at quendi.de> wrote:
> On 11.07.2012, at 02:34, Martin Pool wrote:
>> If you are compiling from a .i or .ii file, the -D and -I options can't
>> have any effect. It's reasonable for clang to emit a warning about it, and
>> it would be reasonable for ccache to strip those options when compiling a
>> preprocessed file.
> Aye, if that would be acceptable for the ccache authors, that would be the best solution I think. It would certainly be much cleaner than trying to detect clang and passing options to it to disable that warning...
I agree, as long as it doesn't introduce regression for other compilers.
Max, do you have a suggestion on which options would make sense to not
pass to the preprocessor?
More information about the ccache