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

Peter Eisentraut <peter@eisentraut.org>

Commit: 69d76fb2ab788d1715c82aece7b1dff10f483882
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-01-09T09:25:02Z
Decouple C++ support in Meson's PGXS from LLVM enablement

This is important for Postgres extensions that are written in C++,
such as pg_duckdb, which uses PGXS as the build system currently.  In
the autotools build, C++ is not coupled to LLVM.  If the autotools
build is configured without --with-llvm, the C++ compiler and the
various flags get persisted into the Makefile.global.

Author: Tristan Partin <tristan@partin.io>
Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/D98JHQF7H2A8.VSE3I4CJBTAB%40partin.io

Files

PathChange+/−
meson.build modified +18 −11
src/include/meson.build modified +7 −1
src/makefiles/meson.build modified +1 −2

Discussion