diff options
author | Behan Webster <behanw@converseincode.com> | 2013-09-03 22:27:25 -0400 |
---|---|---|
committer | Behan Webster <behanw@converseincode.com> | 2014-03-31 00:07:19 -0700 |
commit | 8c3cc7a3817bcc889a20e2d429f49c26e80f18cc (patch) | |
tree | e1208751a884be1b6781dbf69c42def7034aab97 /lib | |
parent | 190c4956a617d58104a763f0929300f357625e54 (diff) |
LLVMLinux: Clang doesn't support the gcc flags set by CONFIG_ARCH_HWEIGHT_CFLAGS
Ignore the flags set in Kconfig for hweight if the compiler is clang.
This is also reported as LLVM PR9457
Author: Behan Webster <behanw@converseincode.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 48140e3ba73..6697534a9ec 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -46,7 +46,9 @@ obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o GCOV_PROFILE_hweight.o := n +ifneq ($(COMPILER),clang) CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS)) +endif obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o obj-$(CONFIG_BTREE) += btree.o |