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:
Michael Bestas 2022-11-11 03:30:39 +02:00 committed by Michael Bestas
parent 35d296a02d
commit 96153e0e9c
No known key found for this signature in database
GPG Key ID: CC95044519BE6669
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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)