Re: pgsql: tests: Add a test C++ extension module

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Robert Haas <robertmhaas@gmail.com>, Peter Eisentraut <peter@eisentraut.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-01-21T21:13:14Z
Lists: pgsql-hackers
Jelte Fennema-Nio <postgres@jeltef.nl> writes:
> On Wed, 21 Jan 2026 at 21:25, Robert Haas <robertmhaas@gmail.com> wrote:
>> This patch caused my usual build process to fail. I have been setting
>> CC='ccache clang' in my environment, and I was able to fix make it
>> work again by also setting CXX='ccache clang'. Before that, I was
>> getting my macPorts version of clang (21.1.2) for C source files but
>> the OS version of clang (15.0.0) for c++ files. But I still don't
>> really understand how that caused this failure, which doesn't look
>> like it has anything to do with mixing compilers:

> Seems like the same error as Peter Smith.

BF member sevengill is showing the identical error, but my
various macOS-based animals are OK.  Maybe comparing their
configuration choices would yield insight.

			regards, tom lane



Commits

  1. Detect if flags are needed for C++11 support

  2. tests: Add a test C++ extension module