Skip to content

Commit e65ff2e

Browse files
committed
meson: cpluspluscheck prereq
1 parent ab277e1 commit e65ff2e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/makefiles/meson.build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ pgxs_kv = {
117117
'FLEXFLAGS': ' '.join(flex_flags),
118118

119119
'LIBS': var_libs,
120+
121+
# Needed for headerscheck/cpluspluscheck
122+
'perl_includespec': perl_dep.found() ? ' '.join(perl_ccflags) : '',
123+
'python_includespec': python3_dep.found() ? '-I@0@'.format(python3_inst.get_variable('INCLUDEPY')) : '',
120124
}
121125

122126
if llvm.found()
@@ -180,8 +184,8 @@ pgxs_empty = [
180184
'LIBOBJS', 'PG_CRC32C_OBJS', 'TAS',
181185
'DTRACEFLAGS', # only server has dtrace probes
182186

183-
'perl_archlibexp', 'perl_embed_ccflags', 'perl_embed_ldflags', 'perl_includespec', 'perl_privlibexp',
184-
'python_additional_libs', 'python_includespec', 'python_libdir', 'python_libspec', 'python_majorversion', 'python_version',
187+
'perl_archlibexp', 'perl_embed_ccflags', 'perl_embed_ldflags', 'perl_privlibexp',
188+
'python_additional_libs', 'python_libdir', 'python_libspec', 'python_majorversion', 'python_version',
185189

186190
# possible that some of these are referenced explicitly in pgxs makefiles?
187191
# For now not worth it.

0 commit comments

Comments
 (0)