Skip to content

Commit d6770d0

Browse files
committed
meson: wip: headerchecks cpluspluschecks
1 parent ba34638 commit d6770d0

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

src/include/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ config_paths_data.set_quoted('MANDIR', dir_prefix / dir_man)
4242

4343
var_cc = ' '.join(cc.cmd_array())
4444
var_cpp = ' '.join(cc.cmd_array() + ['-E'])
45-
var_cflags = ' '.join(cflags + cflags_warn)
46-
var_cxxflags = ' '.join(cxxflags + cxxflags_warn)
45+
var_cflags = ' '.join(cflags + cflags_warn + ['-Wall'])
46+
var_cxxflags = ' '.join(cxxflags + cxxflags_warn + ['-Wall'])
4747
var_cppflags = ' '.join(cppflags)
4848
var_cflags_sl = '-fPIC' #FIXME
4949
var_ldflags = ' '.join(ldflags)

src/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,10 @@ install_data(
269269
install_data(
270270
'makefiles/pgxs.mk',
271271
install_dir: dir_pgxs / 'src' / 'makefiles')
272+
273+
274+
run_target('headerscheck',
275+
command: [files('tools/pginclude/headerscheck'), '@SOURCE_ROOT@', '@BUILD_ROOT@'])
276+
277+
run_target('cpluspluscheck',
278+
command: [files('tools/pginclude/cpluspluscheck'), '@SOURCE_ROOT@', '@BUILD_ROOT@'])

src/tools/pginclude/cpluspluscheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ do
166166
# Some subdirectories need extra -I switches.
167167
case "$f" in
168168
src/pl/plperl/*)
169-
EXTRAINCLUDES="$perl_includespec" ;;
169+
EXTRAINCLUDES="$perl_includespec"; continue; ;;
170170
src/pl/plpython/*)
171-
EXTRAINCLUDES="$python_includespec" ;;
171+
EXTRAINCLUDES="$python_includespec"; continue; ;;
172172
src/interfaces/ecpg/*)
173173
EXTRAINCLUDES="-I $builddir/src/interfaces/ecpg/include -I $srcdir/src/interfaces/ecpg/include" ;;
174174
src/backend/parser/*)

src/tools/pginclude/headerscheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ do
149149
# Some subdirectories need extra -I switches.
150150
case "$f" in
151151
src/pl/plperl/*)
152-
EXTRAINCLUDES="$perl_includespec" ;;
152+
EXTRAINCLUDES="$perl_includespec"; continue; ;;
153153
src/pl/plpython/*)
154-
EXTRAINCLUDES="$python_includespec" ;;
154+
EXTRAINCLUDES="$python_includespec"; continue; ;;
155155
src/interfaces/ecpg/*)
156156
EXTRAINCLUDES="-I $builddir/src/interfaces/ecpg/include -I $srcdir/src/interfaces/ecpg/include" ;;
157157
src/backend/parser/*)

0 commit comments

Comments
 (0)