[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200419123612.173187-1-sedat.dilek@gmail.com>
Date: Sun, 19 Apr 2020 14:36:12 +0200
From: Sedat Dilek <sedat.dilek@...il.com>
To: Masahiro Yamada <masahiroy@...nel.org>,
"Steven Rostedt (VMware)" <rostedt@...dmis.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Tejun Heo <tj@...nel.org>, Jessica Yu <jeyu@...nel.org>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
"Joel Fernandes (Google)" <joel@...lfernandes.org>,
Patrick Bellasi <patrick.bellasi@....com>,
Krzysztof Kozlowski <krzk@...nel.org>,
Dan Williams <dan.j.williams@...el.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com
Cc: Sedat Dilek <sedat.dilek@...il.com>
Subject: [PATCH] kbuild: Set CLANG_VERSION only when Clang is used
Do like GCC_VERSION is set when GCC (see CC_IS_GCC) is used.
Signed-off-by: Sedat Dilek <sedat.dilek@...il.com>
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/Kconfig b/init/Kconfig
index 9e22ee8fbd75..c23f9d3d6d6c 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -25,7 +25,7 @@ config CC_IS_CLANG
config CLANG_VERSION
int
- default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
+ default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) if CC_IS_CLANG
config CC_CAN_LINK
def_bool $(success,$(srctree)/scripts/cc-can-link.sh $(CC))
--
2.26.1
Powered by blists - more mailing lists