Skip to content
Commit 9a950154 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: use CONFIG_CC_VERSION_TEXT to construct LINUX_COMPILER macro



scripts/mkcompile_h runs $(CC) just for getting the version string.
Reuse CONFIG_CC_VERSION_TEXT for optimization.

For GCC, this slightly changes the version string. I do not think it
is a big deal as we do not have the defined format for LINUX_COMPILER.
In fact, the recent commit 4dcc9a88 ("kbuild: mkcompile_h:
Include $LD version in /proc/version") added the linker version.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 30a77297
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment