| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org> |
| Cc: | Bryan Green <dbryan(dot)green(at)gmail(dot)com> |
| Subject: | Re: MSVC: Improve warning options set |
| Date: | 2025-11-09 03:21:20 |
| Message-ID: | DC772C88-C8D3-47EA-8E15-6AAEF50FB202@anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On November 8, 2025 4:40:26 PM EST, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>On Tue, Nov 4, 2025 at 7:56 AM Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>> On 31.10.25 14:31, Bryan Green wrote:
>> > The real question is MinGW. If we still support MinGW builds targeting
>> > the old MSVCRT, those need the environ declaration. If we require MinGW
>> > with UCRT, we don't. You'd need something like "#if defined(MINGW32)
>> > && !defined(_UCRT)" to distinguish them, if it matters.
>>
>> As of commit 1758d424461 (PG18) we require UCRT if using MinGW.
>>
>> I don't know if we still support MSVCRT if using MSVC, or how long we
>> still need to support it. (Or, for example, how to tell which variant
>> CI or the buildfarm uses.)
>
>The main CI task and build farm animal fairywren use UCRT, so there is
>no automated test coverage for the old runtime and hasn't been for
>some time, and that's also the default with that toolchain these day.
>There is still one place that builds (without running) against MSVCRT
>in CI: the CompilerWarnings mingw cross-compilation task that runs on
>Debian.
Pretty sure it's now using ucrt too, that had to be changed as part of the update to Trixie, otherwise the builds would fail.
Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Philip Warner | 2025-11-09 06:15:10 | Re: pg_dump not dumping default_text_search_config WAI? |
| Previous Message | Xuneng Zhou | 2025-11-09 03:11:58 | Re: Add tab completion support for WAIT FOR command |