pgsql: Fix universal builds on MacOS

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix universal builds on MacOS
Date: 2026-05-08 09:46:10
Message-ID: E1wLHmc-000px6-29@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix universal builds on MacOS

Commit 16743db06 assumed that the CPUID instruction was always
available when the usual x86 symbols were defined. That is not the
case, so zero out the info rather than error out.

Reported-by: Jakob Egger <jakob(at)eggerapps(dot)at>
Reported-by: Tobias Bussmann <t(dot)bussmann(at)gmx(dot)net>
Suggested-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/223EA201-A0E8-4A13-B220-EB903E8DF817@eggerapps.at

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/901ed9b352b41f034e17bc540725082a488fce31

Modified Files
--------------
src/port/pg_cpu_x86.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-05-08 18:13:29 pgsql: First-draft release notes for 18.4.
Previous Message Richard Guo 2026-05-08 08:24:19 pgsql: Enforce RETURNING typmod for empty-set JSON_ARRAY(query)