Revert "kbuild: Check for 'clang' string in the entire --version output"
Remove non-upstream change.
This reverts commit 4b4a6295c1
.
Change-Id: I38505fa398e1de10fa3bbd7248d9b4cb1173e444
This commit is contained in:
parent
35d296a02d
commit
96153e0e9c
2
Makefile
2
Makefile
@ -553,7 +553,7 @@ ifdef building_out_of_srctree
|
||||
{ echo "# this is build directory, ignore it"; echo "*"; } > .gitignore
|
||||
endif
|
||||
|
||||
ifneq ($(shell $(CC) --version 2>&1 | grep clang),)
|
||||
ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
|
||||
ifneq ($(CROSS_COMPILE),)
|
||||
CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%))
|
||||
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
|
||||
|
@ -35,7 +35,7 @@ config GCC_VERSION
|
||||
default 0
|
||||
|
||||
config CC_IS_CLANG
|
||||
def_bool $(success,$(CC) --version | grep -q clang)
|
||||
def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
|
||||
|
||||
config LD_IS_LLD
|
||||
def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD)
|
||||
|
Loading…
Reference in New Issue
Block a user