Re: ccache, MSVC, and meson - Mailing list pgsql-hackers

From Andres Freund
Subject Re: ccache, MSVC, and meson
Date
Msg-id 20220525044817.kczou2nkbtk46itj@alap3.anarazel.de
Whole thread Raw
In response to Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
Re: ccache, MSVC, and meson  (Justin Pryzby <pryzby@telsasoft.com>)
List 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 by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: doc phrase: "inheritance child"
Next
From: Michael Paquier
Date:
Subject: Re: fix stats_fetch_consistency value in postgresql.conf.sample