Skip to content
Snippets Groups Projects
Commit 61163efa authored by Behan Webster's avatar Behan Webster
Browse files

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: default avatarBehan Webster <behanw@converseincode.com>
Signed-off-by: default avatarJan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>
Cc: PaX Team <pageexec@freemail.hu>
parent 39de65aa
No related branches found
No related tags found
No related merge requests found
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