meson: Build numeric.c with -ftree-vectorize.

autoconf builds have compiled this file with -ftree-vectorize since
commit 8870917623, but meson builds seem to have missed the memo.

Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://postgr.es/m/aL85CeasM51-0D1h%40nathan
Backpatch-through: 16
master
Nathan Bossart 1 day ago
parent 33eec80940
commit 9016fa7e3b
  1. 11
      src/backend/utils/adt/meson.build

@ -1,5 +1,15 @@
# Copyright (c) 2022-2025, PostgreSQL Global Development Group
# Some code in numeric.c benefits from auto-vectorization
numeric_backend_lib = static_library('numeric_backend_lib',
'numeric.c',
dependencies: backend_build_deps,
kwargs: internal_lib_args,
c_args: vectorize_cflags,
)
backend_link_with += numeric_backend_lib
backend_sources += files(
'acl.c',
'amutils.c',
@ -61,7 +71,6 @@ backend_sources += files(
'network_gist.c',
'network_selfuncs.c',
'network_spgist.c',
'numeric.c',
'numutils.c',
'oid.c',
'oracle_compat.c',

Loading…
Cancel
Save