On 22.03.23 10:45, Peter Eisentraut wrote:
On 18.03.23 00:54, Andres Freund wrote:
I think a good compromise would be buildtype=debugoptimized, which is
-O2
with debug symbols, which also sort of matches the default in the
autoconf
world.
Looks like that'd result in a slightly worse build with msvc, as
afaict we
wouldn't end up with /OPT:REF doesn't get specified, which
automatically gets
disabled if /DEBUG is specified. I guess we can live with that.
I looked up what /OPT:REF does
(https://learn.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-170), and it seems pretty obscure to me, at least for development builds.
I have committed the change of buildtype to debugoptimized.