]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: replace cc-name test with CONFIG_CC_IS_CLANG
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 30 Oct 2018 13:26:33 +0000 (22:26 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 2 Nov 2018 13:49:00 +0000 (22:49 +0900)
commit223d87cc2b332e03fbe9275fb9138b6f7897bf69
treef9e534cbf76b4fd8e47ff8690caf132d439f9310
parent4d60cc258c32a3f69c22a2f0dcfeea8bb2ed02fa
kbuild: replace cc-name test with CONFIG_CC_IS_CLANG

Evaluating cc-name invokes the compiler every time even when you are
not compiling anything, like 'make help'. This is not efficient.

The compiler type has been already detected in the Kconfig stage.
Use CONFIG_CC_IS_CLANG, instead.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Paul Burton <paul.burton@mips.com> (MIPS)
Acked-by: Joel Stanley <joel@jms.id.au>
Makefile
arch/mips/Makefile
arch/mips/vdso/Makefile
arch/powerpc/Makefile
scripts/Makefile.extrawarn