Skip to content

Commit c4726e7

Browse files
committed
Merge tag 'gcc-plugins-v4.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull gcc plugin fix from Kees Cook: "Lift gcc test into Kconfig. This is for better behavior when the kernel is built with Clang, reported by Stefan Agner" * tag 'gcc-plugins-v4.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: gcc-plugins: Disable when building under Clang
2 parents d207ea8 + b044133 commit c4726e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gcc-plugins/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),
22

33
config PLUGIN_HOSTCC
44
string
5-
default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")"
5+
default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC
66
help
77
Host compiler used to build GCC plugins. This can be $(HOSTCXX),
88
$(HOSTCC), or a null string if GCC plugin is unsupported.

0 commit comments

Comments
 (0)