scripts/gcc-plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh index b79fd0bea838..59db87bff456 100755 --- a/scripts/gcc-plugin.sh +++ b/scripts/gcc-plugin.sh @@ -8,8 +8,8 @@ srctree=$(dirname "$0") gccplugins_dir=$($* -print-file-name=plugin) # we need a c++ compiler that supports the designated initializer GNU extension +test -e "$gccplugins_dir/include/plugin-version.h" && $HOSTCC -c -x c++ -std=gnu++98 - -fsyntax-only -I $srctree/gcc-plugins -I $gccplugins_dir/include 2>/dev/null <