Fix universal builds on MacOS
John Naylor <john.naylor@postgresql.org>
Author:
John Naylor <john.naylor@postgresql.org>
Date: 2026-05-08T09:44:25Z
Releases:
19 (unreleased)
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@eggerapps.at> Reported-by: Tobias Bussmann <t.bussmann@gmx.net> Suggested-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/223EA201-A0E8-4A13-B220-EB903E8DF817@eggerapps.at
Files
| Path | Change | +/− |
|---|---|---|
| src/port/pg_cpu_x86.c | modified | +1 −2 |
Discussion
- Broken build on macOS (Universal / Intel): cpuid instruction not available 24 messages · 2026-05-07 → 2026-06-03