kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang
authorJan-Simon Möller <dl9pf@gmx.de>
Wed, 14 Nov 2012 09:55:48 +0000 (10:55 +0100)
committerBehan Webster <behanw@converseincode.com>
Wed, 9 Apr 2014 20:44:35 +0000 (13:44 -0700)
commitdb46293bc6866a9bcffc9cb5b1ae9c46e4f83fa7
tree354d35b77738a2cd1ef07960b039eda9f863fc51
parent8a260796a1019fbd064ed02fa51913727dc700b6
kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang

When building the LINUX_COMPILER definition, instead of merely taking the last
line from "$(CC) -v", grep for ' version ' in the output. This supports both
gcc and clang.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Cc: PaX Team <pageexec@freemail.hu>
scripts/mkcompile_h