gcc-plugins: abort builds cleanly when not supported
authorKees Cook <keescook@chromium.org>
Sat, 18 Jun 2016 06:11:12 +0000 (23:11 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 9 Aug 2016 00:49:05 +0000 (17:49 -0700)
commited58c0e9eefef517aa5a547b78658e2ab4422232
tree678081bd9195ee83fc89ccf06ffd4c551d1d9d44
parentd26e94149276f8c3d4911aa2c8395ba99b613c8d
gcc-plugins: abort builds cleanly when not supported

When the compiler doesn't support gcc plugins (either due to missing
headers or too old a version), report the problem and abort the build
instead of emitting a warning and letting the build founder with arcane
compiler errors.

Signed-off-by: Kees Cook <keescook@chromium.org>
Makefile
scripts/Makefile.gcc-plugins
scripts/gcc-plugin.sh