]> git.ipfire.org Git - thirdparty/ccache.git/commit
Avoid passing compilation-only options to the preprocessor redux
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 14 Jan 2020 20:30:29 +0000 (21:30 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 15 Jan 2020 20:31:04 +0000 (21:31 +0100)
commit9095e51fbb7543bc38ba7763725bd9e5aa8115de
treecf86ede2612f5a0be00ba39a24231c1feb4478db
parentdcd4efcc0eb6cddeb4d801bb6b676d68bdf26274
Avoid passing compilation-only options to the preprocessor redux

25e73c1f (“Include compiler-only arguments in the hash”) attempted to
fix a regression in 5d8585b5 (“Don’t pass -Werror and compilation-only
options to the preprocessor”). It succeeded fixing the regression all
right, but it also essentially reverted the essence of 5d8585b5 (#312)
since compiler-only arguments once again are passed to the preprocessor.
Sigh.

Fix this for real and also write a test that proves it.

(cherry picked from commit bc2005e994030f787c014ce2491cfc4c7057eac6)
src/ccache.cpp
test/suites/base.bash