postgres-github.git / summary / log / commit / refs

commit    c05ad248f99c729b53f6fa83939266b509682c33
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Wed Apr 01 05:48:47 2026 +0000

    Enable test_cplusplusext with MSVC
    
    The test_cplusplusext test module has so far been disabled on MSVC.
    The only remaining problem now is that designated initializers, as
    used in PG_MODULE_MAGIC, require C++20.  (With GCC and Clang they work
    in older C++ versions as well.)
    
    This adds another test in the top-level meson.build to check that the
    compiler supports C++20 designated initializers.  This is not
    required, we are just checking and recording the answer.  If yes, we
    can enable the test module.
    
    Most current compilers likely won't be in C++20 mode by default.  This
    doesn't change that; we are not doing anything to try to switch the
    compiler into that mode.  This might be a separate project, but for
    now we'll leave that for the user or the test scaffolding.
    
    The VS task on Cirrus CI is changed to provide the required flag to
    turn on C++20 mode.
    
    There is no equivalent change in configure, since this change mainly
    targets MSVC.
    
    Co-authored-by: Jelte Fennema-Nio <postgres@jeltef.nl>
    Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg%40mail.gmail.com

[parent: 6b0550c45d13]