Hi, On 2022-06-03 12:35:45 +0300, Aleksander Alekseev wrote: > > Part of the patch series is to use visibility attributes, and your #if > > TS_EMPTY(PGDLLEXPORT) thing can't handle that. > > Out of curiosity, how come a patchset that adds an alternative build system > changes the visibility attributes?
It was the simplest path - on windows (and AIx) extension symbols need to be explicitly exported. We did that by building the objects constituting extension libraries, collecting the symbols, generating an export file with all the symbols, which then is passed to the linker. It was a lot less work to just add the necessary PGDLLEXPORT annotations than make that export file generation work for extensions. > I would guess they should be the same for both Autotools and Meson. It is, the patch adds it to both. > Is it necessary in order to make Meson work? Yes, or at least the simplest path. > If not, maybe it should be a separate patch. It is. https://commitfest.postgresql.org/38/3396/ Greetings, Andres Freund