kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
authorBehan Webster <behanw@converseincode.com>
Wed, 4 Sep 2013 02:27:23 +0000 (22:27 -0400)
committerBehan Webster <behanw@converseincode.com>
Wed, 9 Apr 2014 20:44:34 +0000 (13:44 -0700)
Add support to toplevel Makefile for compiling with clang, both for
HOSTCC and CC. Use cc-option to prevent gcc option from breaking clang, and
from clang options from breaking gcc.

Clang 3.4 semantics are the same as gcc semantics for unsupported flags. For
unsupported warnings clang 3.4 returns true but shows a warning and gcc shows
a warning and returns false.

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

diff --cc Makefile
Simple merge