author: Masahiro Yamada <masahiroy@kernel.org> 2021-03-14 15:15:50 +0900
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-04-25 05:14:01 +0900
commit: 6e0839fda3f8598b164a7f23f3eec039e2db5fbc
parent: 879a3209009fbbeb013a1d81952abcbe13918a13
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/Makefile b/Makefile
index 5cb44595418c..cc5b7e39fde4 100644
--- a/Makefile
+++ b/Makefile
@@ -574,7 +574,7 @@ endif
# Some architectures define CROSS_COMPILE in arch/$(SRCARCH)/Makefile.
# CC_VERSION_TEXT is referenced from Kconfig (so it needs export),
# and from include/config/auto.conf.cmd to detect the compiler upgrade.
-CC_VERSION_TEXT = $(shell $(CC) --version 2>/dev/null | head -n 1 | sed 's/\#//g')
+CC_VERSION_TEXT = $(subst $(pound),,$(shell $(CC) --version 2>/dev/null | head -n 1))
ifneq ($(findstring clang,$(CC_VERSION_TEXT)),)
ifneq ($(CROSS_COMPILE),)