Re: ccache, MSVC, and meson

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: ccache, MSVC, and meson
Дата
Msg-id 20220525044817.kczou2nkbtk46itj@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
Hi,

On 2022-05-24 17:17:47 -0500, Justin Pryzby wrote:
> Also, /O2 cuts ~3 minutes off the test time on cirrus, which seems worth it,
> except that it omits frame pointers, which probably breaks debuggability.

It likely also causes us to use the non-debug C runtime? Which IMO would be
bad, it does detect quite a few problems that are otherwise hard to find.


> And when I pass /Oy- to "avoid omitting" frame pointers, several tests crash...

Huh. Do you get a backtrace containing anything remotely meaningful?

There's this helpful statement in the docs:
https://docs.microsoft.com/en-us/cpp/build/reference/oy-frame-pointer-omission?view=msvc-170
> If you specify a debug compiler option (/Z7, /Zi, /ZI), we recommend that you specify the /Oy- option after any other
optimizationcompiler options.
 

Greetings,

Andres Freund



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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: doc phrase: "inheritance child"
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: fix stats_fetch_consistency value in postgresql.conf.sample