Re: Decouple C++ support in Meson's PGXS from LLVM enablement

From: "Tristan Partin" <tristan(at)partin(dot)io>
To: "Jelte Fennema-Nio" <me(at)jeltef(dot)nl>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, "Andres Freund" <andres(at)anarazel(dot)de>
Subject: Re: Decouple C++ support in Meson's PGXS from LLVM enablement
Date: 2025-04-17 13:18:40
Message-ID: D98XZBWVMU00.3FOISYC6CIRHU@partin.io
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu Apr 17, 2025 at 2:15 AM CDT, Jelte Fennema-Nio wrote:
> On Thu, 17 Apr 2025 at 03:57, Tristan Partin <tristan(at)partin(dot)io> wrote:
>> I spent some time exploring the Meson build a bit, and I realized that
>> C++ support in PGXS is tied to LLVM enablement. Checking the autotools
>> build in the configure.ac script indicates that that is not the case for
>> it.
>
> Thank you for looking into this. I didn't try the patch, but just
> reading it it all looks sensible (although my meson knowledge is quite
> limited). I assume you tried to build pg_duckdb with a Meson based PG
> build containing this patch and pg_duckdb built correctly?

I took some time to backpatch to 17 on my machine so that I could build
pg_duckdb, and indeed with the backpatch applied, pg_duckdb compiles
successfully.

I do however hit linker errors later, but that is unrelated to the
current patch discussion. I'll discuss them with you in a different
forum.

--
Tristan Partin
https://tristan.partin.io

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2025-04-17 13:58:41 Re: Unicode full case mapping: PG_UNICODE_FAST, and standard-compliant UCS_BASIC
Previous Message Andrei Lepikhov 2025-04-17 12:47:39 Re: Problems with estimating OR conditions, IS NULL on LEFT JOINs