]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68701feb7b9472188f4c79394806a909e028d8b2
tree354d35b77738a2cd1ef07960b039eda9f863fc51
parent85313e708e370b7487803e221af0eaf810b1e153
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