Skip to content

Commit 5165d43

Browse files
committed
meson: Add some missing LLVM function checks
The checks for HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER and HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER are in configure but are missing on the meson side. This adds those. Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/5539b16c-cff7-46d5-9621-c3fb6b549e9e@iki.fi
1 parent ca89db5 commit 5165d43

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

meson.build

+8
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,14 @@ decl_checks += [
23012301
['pwritev', 'sys/uio.h'],
23022302
]
23032303

2304+
# Check presence of some optional LLVM functions.
2305+
if llvm.found()
2306+
decl_checks += [
2307+
['LLVMCreateGDBRegistrationListener', 'llvm-c/ExecutionEngine.h'],
2308+
['LLVMCreatePerfJITEventListener', 'llvm-c/ExecutionEngine.h'],
2309+
]
2310+
endif
2311+
23042312
foreach c : decl_checks
23052313
func = c.get(0)
23062314
header = c.get(1)

0 commit comments

Comments
 (0)