Skip to content

Commit

Permalink
kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y committed Jan 23, 2021
1 parent 1cabe74 commit f4c3b83
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/dummy-tools/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ if arg_contain -S "$@"; then
fi
fi

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

sed -n 's/.*#include "\(.*\)"/\1/p' $(dirname $0)/../gcc-plugins/gcc-common.h |
while read header
do
mkdir -p $plugin_dir/include/$(dirname $header)
touch $plugin_dir/include/$header
done
mkdir -p $plugin_dir/include
touch $plugin_dir/include/plugin-version.h

echo $plugin_dir
exit 0
Expand Down

0 comments on commit f4c3b83

Please sign in to comment.