Re: ccache, MSVC, and meson

From: Andres Freund <andres(at)anarazel(dot)de>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>
Subject: Re: ccache, MSVC, and meson
Date: 2022-05-25 04:48:17
Message-ID: 20220525044817.kczou2nkbtk46itj@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 optimization compiler options.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-05-25 05:00:23 Re: fix stats_fetch_consistency value in postgresql.conf.sample
Previous Message Ashutosh Bapat 2022-05-25 04:29:57 Re: doc phrase: "inheritance child"