scrooloose/syntastic — pull request #379 by suy (2012-10-09 07:30:55+00:00)
Title: Don't create precompiled headers when checking them

Hi.

I've created this small change to avoid creating the *.h.gch precompiled headers when checking such headers.

It could be done passing the "-o /dev/null" with the options, but IMHO, it makes more sense this way, since I doubt many people will know that such thing is possible, or how to do it (maybe not many people run gcc by hand), and I also doubt that there are many people that want precompiled headers generated by syntastic (probably even less in the same directory as the source).

I also considered doing this through the default options, that is, setting the default compiler options to "-o /dev/null" if the user doesn't set it to something (instead of an empty string), but then, for those that set something, will lose this behaviour.

Of course is up to you to decide, but IMHO, checking headers should be no different than checking sources, and the precompiled headers are annoyingly big to lay in the source tree (I have a different build directory), so the default should be not generating them.

Regards, and thanks a lot for syntastic. :-)