postgres.git / summary / log / commit / refs

commit    2de24ca6ca512053d821e14f2203cb0b28d7259e
Author:   Jeff Davis <jdavis@postgresql.org>
Date:     Tue Sep 09 23:04:04 2025 +0000
First released in: 16.11, 17.7, 18.0

    meson: build checksums with extra optimization flags.
    
    Use -funroll-loops and -ftree-vectorize when building checksum.c to
    match what autoconf does.
    
    Missed backport of 9af672bcb2, noticed by Nathan Bossart.
    
    Reported-by: Nathan Bossart <nathandbossart@gmail.com>
    Discussion: https://postgr.es/m/a81f2f7ef34afc24a89c613671ea017e3651329c.camel@j-davis.com
    Reviewed-by: Andres Freund <andres@anarazel.de>
    Backpatch-through: 16


src/backend/storage/page/meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/backend/storage/page/meson.build b/src/backend/storage/page/meson.build index 2160a3732b1..c8e70b345ac 100644 --- a/src/backend/storage/page/meson.build +++ b/src/backend/storage/page/meson.build @@ -1,7 +1,15 @@ # Copyright (c) 2022-2023, PostgreSQL Global Development Group +checksum_backend_lib = static_library('checksum_backend_lib', + 'checksum.c', + dependencies: backend_build_deps, + kwargs: internal_lib_args, + c_args: vectorize_cflags + unroll_loops_cflags, +) + +backend_link_with += checksum_backend_lib + backend_sources += files( 'bufpage.c', - 'checksum.c', 'itemptr.c', ) [parent: 12f57681c79b]