diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-08 17:12:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-08 17:12:19 -0400 |
commit | dab3c3cc4f44273ccf2d7ff57c0a4f5bd45c0528 (patch) | |
tree | 6bbe14d6ec101bc278a8166469fdaa07d8f6493c /Makefile | |
parent | 59a47fff0217592e248556a7ab436d5c17365962 (diff) | |
parent | 5631d9c429857194bd55d7bcd8fa5bdd1a9899a3 (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull core kbuild updates from Michal Marek:
- modpost portability fix
- linker script fix
- genksyms segfault fix
- fixdep cleanup
- fix for clang detection
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kbuild: Fix clang detection
kbuild: fixdep: drop meaningless hash table initialization
kbuild: fixdep: optimize code slightly
genksyms: Regenerate parser
genksyms: Duplicate function pointer type definitions segfault
kbuild: Fix .text.unlikely placement
Avoid conflict with host definitions when cross-compiling
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -666,14 +666,7 @@ endif | |||
666 | endif | 666 | endif |
667 | KBUILD_CFLAGS += $(stackp-flag) | 667 | KBUILD_CFLAGS += $(stackp-flag) |
668 | 668 | ||
669 | ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1) | 669 | ifeq ($(cc-name),clang) |
670 | COMPILER := clang | ||
671 | else | ||
672 | COMPILER := gcc | ||
673 | endif | ||
674 | export COMPILER | ||
675 | |||
676 | ifeq ($(COMPILER),clang) | ||
677 | KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) | 670 | KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) |
678 | KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,) | 671 | KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,) |
679 | KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) | 672 | KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) |