]> git.baikalelectronics.ru Git - kernel.git/commit
gcc-plugins: make it possible to disable CONFIG_GCC_PLUGINS again
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Dec 2019 13:39:28 +0000 (14:39 +0100)
committerKees Cook <keescook@chromium.org>
Thu, 2 Jan 2020 21:30:14 +0000 (13:30 -0800)
commitfdecb2a71f3d6f44423460da8959c8687a335b8c
tree98c087571f7d028ce354ca7a4323ccb825c21262
parenta703976d8e9b2972343d7af9d551c41c680d9d84
gcc-plugins: make it possible to disable CONFIG_GCC_PLUGINS again

I noticed that randconfig builds with gcc no longer produce a lot of
ccache hits, unlike with clang, and traced this back to plugins
now being enabled unconditionally if they are supported.

I am now working around this by adding

   export CCACHE_COMPILERCHECK=/usr/bin/size -A %compiler%

to my top-level Makefile. This changes the heuristic that ccache uses
to determine whether the plugins are the same after a 'make clean'.

However, it also seems that being able to just turn off the plugins is
generally useful, at least for build testing it adds noticeable overhead
but does not find a lot of bugs additional bugs, and may be easier for
ccache users than my workaround.

Fixes: 6d56a70b94a5 ("security: Create "kernel hardening" config area")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20191211133951.401933-1-arnd@arndb.de
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/Kconfig