]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: use $(CC_VERSION_TEXT) to evaluate CC_IS_GCC and CC_IS_CLANG
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 23 Apr 2020 14:23:51 +0000 (23:23 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 12 May 2020 04:28:33 +0000 (13:28 +0900)
commitc4285ff6bd30d0cca8d599d08c69bfcbe92d8645
tree5c2541eddc8d3f6c520b51fd63832fc995f1b84d
parentd3405aa2cdfdf51bac7bd41d4928900629dedd83
kbuild: use $(CC_VERSION_TEXT) to evaluate CC_IS_GCC and CC_IS_CLANG

The result of '$(CC) --version | head -n 1' has already been computed
by the top Makefile, and stored in the environment variable,
CC_VERSION_TEXT.

'echo' is cheaper than the two commands $(CC) and 'head' although this
optimization is not noticeable level.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
init/Kconfig