Re: meson: Add support for building with precompiled headers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: meson: Add support for building with precompiled headers
Дата
Msg-id 2550386.1665000554@sss.pgh.pa.us
обсуждение исходный текст
Ответ на meson: Add support for building with precompiled headers  (Andres Freund <andres@anarazel.de>)
Ответы Re: meson: Add support for building with precompiled headers
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> When using precompiled headers we cannot override macros in system headers
> from within .c files, as headers are already processed before the #define in
> the C file is reached.

> A few files #define FD_SETSIZE 1024 on windows, as the default is only 64. I
> am hesitant to change FD_SETSIZE globally on windows, due to
> src/backend/port/win32/socket.c using it to size on-stack arrays. Instead add
> -DFD_SETSIZE=1024 when building the specific targets needing it.

Color me confused, but how does it work to #define that from the command
line if it can't be overridden from within the program?

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: meson PGXS compatibility
Следующее
От: Andres Freund
Дата:
Сообщение: Re: meson: Add support for building with precompiled headers