Skip to content

Commit eda3f96

Browse files
committed
meson: cpluspluscheck prereq
1 parent ca35416 commit eda3f96

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
@@ -121,6 +121,10 @@ pgxs_kv = {
121121
'FLEXFLAGS': ' '.join(flex_flags),
122122

123123
'LIBS': var_libs,
124+
125+
# Needed for headerscheck/cpluspluscheck
126+
'perl_includespec': perl_dep.found() ? ' '.join(perl_ccflags) : '',
127+
'python_includespec': python3_dep.found() ? '-I@0@'.format(python3_inst.get_variable('INCLUDEPY')) : '',
124128
}
125129

126130
if llvm.found()
@@ -184,8 +188,8 @@ pgxs_empty = [
184188
'LIBOBJS', 'PG_CRC32C_OBJS', 'PG_POPCNT_OBJS', 'TAS',
185189
'DTRACEFLAGS', # only server has dtrace probes
186190

187-
'perl_archlibexp', 'perl_embed_ccflags', 'perl_embed_ldflags', 'perl_includespec', 'perl_privlibexp',
188-
'python_additional_libs', 'python_includespec', 'python_libdir', 'python_libspec', 'python_majorversion', 'python_version',
191+
'perl_archlibexp', 'perl_embed_ccflags', 'perl_embed_ldflags', 'perl_privlibexp',
192+
'python_additional_libs', 'python_libdir', 'python_libspec', 'python_majorversion', 'python_version',
189193

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

0 commit comments

Comments
 (0)