Re: windows build slow due to windows.h includes

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: windows build slow due to windows.h includes
Дата
Msg-id 20210921235643.fpk7jcgflesmu3ny@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: windows build slow due to windows.h includes  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: windows build slow due to windows.h includes  (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>)
Список pgsql-hackers
Hi,

On 2021-09-21 20:26:36 -0300, Ranier Vilela wrote:
> Em ter., 21 de set. de 2021 às 16:30, Andres Freund <andres@anarazel.de>
> escreveu:
> > But that's too much work for my taste. As it turns out there's a partial
> > solution to windows.h being just so damn big, the delightfully named
> > WIN32_LEAN_AND_MEAN.
> >
> +1
> But I did a quick dirty test here, and removed windows.h in win32_port.h,
> and compiled normally with msvc 2019 (64 bit), would it work with mingw
> cross compile?

That's likely only because winsock indirectly includes windows.h - because of
that it won't actually reduce compile time. And you can't remove the other
headers that indirectly include windows.h without causing compilation errors.

Greetings,

Andres Freund



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

Предыдущее
От: Rachel Heaton
Дата:
Сообщение: Re: [PATCH] Implement INSERT SET syntax
Следующее
От: Ajin Cherian
Дата:
Сообщение: Re: row filtering for logical replication