diff --git a/Makefile b/Makefile index 769a2e5a8eaf..37a1f3039623 100644 --- a/Makefile +++ b/Makefile @@ -517,7 +517,7 @@ ifneq ($(srctree),.) { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore endif -ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) +ifneq ($(shell $(CC) --version 2>&1 | grep clang),) ifneq ($(CROSS_COMPILE),) CLANG_TRIPLE ?= $(CROSS_COMPILE) CLANG_FLAGS := --target=$(notdir $(CLANG_TRIPLE:%-=%)) diff --git a/init/Kconfig b/init/Kconfig index 36894c9fb420..725a1862f5ba 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -18,7 +18,7 @@ config GCC_VERSION default 0 config CC_IS_CLANG - def_bool $(success,$(CC) --version | head -n 1 | grep -q clang) + def_bool $(success,$(CC) --version | grep -q clang) config CLANG_VERSION int