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)
commitb04413330c773c808c4c6a6cdd278f8ee0f8b613
treefb5ce5de705d5d4f11dc0ce332da4127d6ff7df1
parent7ccb95e8fe9131b8fa14b947c60dfb30044fa002
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