2 # SPDX-License-Identifier: GPL-2.0
6 srctree
=$
(dirname "$0")
8 gccplugins_dir
=$
($
* -print-file-name=plugin
)
10 # we need a c++ compiler that supports the designated initializer GNU extension
11 $HOSTCC -c -x c
++ -std=gnu
++98 - -fsyntax-only -I $srctree/gcc-plugins
-I $gccplugins_dir/include
2>/dev
/null
<<EOF
12 #include "gcc-common.h"