Re: some LLVM function checks missing in meson

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: some LLVM function checks missing in meson
Date: 2024-04-17 13:29:29
Message-ID: e9eeb485-8837-4182-9183-2b2380178a3f@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 13.04.24 10:25, Heikki Linnakangas wrote:
>> Something like the below would appear to fix that:
>>
>> diff --git a/meson.build b/meson.build
>> index 43fad5323c0..cdfd31377d1 100644
>> --- a/meson.build
>> +++ b/meson.build
>> @@ -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'],
>> +  ]
>> +endif
>> +
>>    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?
>
> +1. I also don't know what they do, but clearly the configure and meson
> checks should be in sync.

Committed that, too.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marcel Hofstetter 2024-04-17 13:40:47 Re: Solaris tar issues, or other reason why margay fails 010_pg_basebackup?
Previous Message Peter Eisentraut 2024-04-17 12:53:40 Re: CREATE TABLE creates a composite type corresponding to the table row, which is and is not there