Re: [PATCH] Fix msvc_gendef.pl for aarch64 (Windows on Arm)

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: kenji uno <h8mastre(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Fix msvc_gendef.pl for aarch64 (Windows on Arm)
Date: 2025-11-11 13:27:22
Message-ID: 7249520a-9de8-481b-baf5-0c633f35032b@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11.11.25 06:11, kenji uno wrote:
> I'm going to build psqlODBC (Arm64X binaries) for use with Windows 11 on
> Arm.
>
> The problem is that the `msvc_gendef.pl <http://msvc_gendef.pl>`
> generates the wrong `postgres.def` for aarch64 (Windows).
>
> Currently, for aarch64, the preceding underscore is removed like for x86.
> However, the expected functionality for aarch64 is the same as for x64:
> keep the preceding underscore.

Here is a long-running thread about supporting Windows/MSVC on Arm:
https://www.postgresql.org/message-id/flat/CAFPTBD-74%2BAEuN9n7caJ0YUnW5A0r-KBX8rYoEJWqFPgLKpzdg%40mail.gmail.com

The patch you sent is part of the overall patch set being discussed
there but it is not sufficient by itself.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Boris Mironov 2025-11-11 13:33:16 Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)
Previous Message Robert Haas 2025-11-11 13:22:14 Re: pgsql: Drop unnamed portal immediately after execution to completion