some LLVM function checks missing in meson

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: some LLVM function checks missing in meson
Date: 2024-04-11 15:26:33
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I have been checking the pg_config.h generated by configure and meson to
see if there is anything materially different. I found that


are missing on the meson side.

Something like the below would appear to fix that:

diff --git a/ b/
index 43fad5323c0..cdfd31377d1 100644
--- a/
+++ b/
@@ -2301,6 +2301,14 @@ decl_checks += [
['pwritev', 'sys/uio.h'],

+# Check presence of some optional LLVM functions.
+if llvm.found()
+ decl_checks += [
+ ['LLVMCreateGDBRegistrationListener', 'llvm-c/ExecutionEngine.h'],
+ ['LLVMCreatePerfJITEventListener', 'llvm-c/ExecutionEngine.h'],
+ ]
foreach c : decl_checks
func = c.get(0)
header = c.get(1)

I don't know what these functions do, but the symbols are used in the
source code. Thoughts?


Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-04-11 15:36:52 Re: SET ROLE documentation improvement
Previous Message Kirill Reshke 2024-04-11 15:20:56 Re: Allow non-superuser to cancel superuser tasks.