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