]> git.baikalelectronics.ru Git - kernel.git/commit
gcc-plugins: Disable when building under Clang
authorKees Cook <keescook@chromium.org>
Thu, 23 Aug 2018 06:02:31 +0000 (23:02 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 23 Aug 2018 17:06:12 +0000 (10:06 -0700)
commitec8781dfef3c7b34b81653a788365a88bf9edff6
treefb5ce5de705d5d4f11dc0ce332da4127d6ff7df1
parentb4370769e5736b4f15f5e909c50bc20d7efa8a08
gcc-plugins: Disable when building under Clang

Prior to doing compiler feature detection in Kconfig, attempts to build
GCC plugins with Clang would fail the build, much in the same way missing
GCC plugin headers would fail the build. However, now that this logic
has been lifted into Kconfig, add an explicit test for GCC (instead of
duplicating it in the feature-test script).

Reported-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/gcc-plugins/Kconfig