mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kbuild: Set CLANG_VERSION only when Clang is used
@ 2020-04-19 12:36 Sedat Dilek
  2020-04-19 15:37 ` Nathan Chancellor
  2020-04-21  9:52 ` kbuild test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Sedat Dilek @ 2020-04-19 12:36 UTC (permalink / raw)
  To: Masahiro Yamada, Steven Rostedt (VMware),
	Masami Hiramatsu, Tejun Heo, Jessica Yu, Mauro Carvalho Chehab,
	Joel Fernandes (Google),
	Patrick Bellasi, Krzysztof Kozlowski, Dan Williams,
	Eric W. Biederman, linux-kernel, clang-built-linux
  Cc: Sedat Dilek

Do like GCC_VERSION is set when GCC (see CC_IS_GCC) is used.

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-21  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19 12:36 [PATCH] kbuild: Set CLANG_VERSION only when Clang is used Sedat Dilek
2020-04-19 15:37 ` Nathan Chancellor
2020-04-21  9:52 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®