From: Jeff Davis Date: Tue, 9 Sep 2025 23:04:04 +0000 (-0700) Subject: meson: build checksums with extra optimization flags. X-Git-Tag: REL_18_0~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7024398b80a836a83c00af42c6ab7cc25c12087;p=thirdparty%2Fpostgresql.git 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 Discussion: https://postgr.es/m/a81f2f7ef34afc24a89c613671ea017e3651329c.camel@j-davis.com Reviewed-by: Andres Freund Backpatch-through: 16 --- diff --git a/src/backend/storage/page/meson.build b/src/backend/storage/page/meson.build index c3e4a805862..112f00ff365 100644 --- a/src/backend/storage/page/meson.build +++ b/src/backend/storage/page/meson.build @@ -1,7 +1,15 @@ # Copyright (c) 2022-2025, 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', )