Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc

With commit 1e860048c53e ("gcc-plugins: simplify GCC plugin-dev
capability test") applied, this hunk can be way simplified because
now scripts/gcc-plugins/Kconfig only checks plugin-version.h

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+3 -7
+3 -7
scripts/dummy-tools/gcc
··· 75 75 fi 76 76 fi 77 77 78 - # For scripts/gcc-plugin.sh 78 + # To set GCC_PLUGINS 79 79 if arg_contain -print-file-name=plugin "$@"; then 80 80 plugin_dir=$(mktemp -d) 81 81 82 - sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h | 83 - while read header 84 - do 85 - mkdir -p $plugin_dir/include/$(dirname $header) 86 - touch $plugin_dir/include/$header 87 - done 82 + mkdir -p $plugin_dir/include 83 + touch $plugin_dir/include/plugin-version.h 88 84 89 85 echo $plugin_dir 90 86 exit 0