Skip to content
projects
/
linux
·
blob
v5.9-rc6 ·
refs
linux
scripts
gcc-plugin.sh
…
History
History
·
Raw
Raw
·
Diff
Diff
·
Blob
Blob
19 lines · 406 B
1
#
!/bin/sh
2
#
SPDX-License-Identifier: GPL-2.0
3
4
set
-
e
5
6
srctree
=
$
(
dirname
"
$
0
"
)
7
8
gccplugins_dir
=
$
(
$
*
-
print-file-name
=
plugin
)
9
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"
13
class test {
14
public:
15
int test;
16
} test = {
17
.test = 1
18
};
19
EOF