]> Git Repo - linux.git/commit
kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
authorBehan Webster <[email protected]>
Wed, 4 Sep 2013 02:27:23 +0000 (22:27 -0400)
committerBehan Webster <[email protected]>
Wed, 9 Apr 2014 20:44:34 +0000 (13:44 -0700)
commit61163efae02040f66a95c8ed17f4407951ba58fa
treef4153900fa31a58ff6efeafc9db53b45cb71cfb4
parent39de65aa2c3eee901db020a4f1396998e09602a3
kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang

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 <[email protected]>
Signed-off-by: Jan-Simon Möller <[email protected]>
Signed-off-by: Mark Charlebois <[email protected]>
Cc: PaX Team <[email protected]>
Makefile
This page took 0.057686 seconds and 4 git commands to generate.