Skip to content

Commit f4c3b83

Browse files
committed
kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc
With commit 1e86004 ("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 <[email protected]>
1 parent 1cabe74 commit f4c3b83

File tree

1 file changed

+3
-7
lines changed
  • scripts/dummy-tools

1 file changed

+3
-7
lines changed

scripts/dummy-tools/gcc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,12 @@ if arg_contain -S "$@"; then
7575
fi
7676
fi
7777

78-
# For scripts/gcc-plugin.sh
78+
# To set GCC_PLUGINS
7979
if arg_contain -print-file-name=plugin "$@"; then
8080
plugin_dir=$(mktemp -d)
8181

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
8884

8985
echo $plugin_dir
9086
exit 0

0 commit comments

Comments
 (0)