projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2dd7b2
)
meson: build checksums with extra optimization flags.
author
Jeff Davis
<
[email protected]
>
Tue, 9 Sep 2025 23:04:04 +0000
(16:04 -0700)
committer
Jeff Davis
<
[email protected]
>
Tue, 9 Sep 2025 23:04:23 +0000
(16:04 -0700)
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 <
[email protected]
>
Discussion: https://postgr.es/m/
a81f2f7ef34afc24a89c613671ea017e3651329c
[email protected]
Reviewed-by: Andres Freund <
[email protected]
>
Backpatch-through: 16
src/backend/storage/page/meson.build
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/page/meson.build
b/src/backend/storage/page/meson.build
index 8caba30bad7aa0aa436a56a69c5392055330815f..f625423b719af3d474895d02e62517717c466619 100644
(file)
--- a/
src/backend/storage/page/meson.build
+++ b/
src/backend/storage/page/meson.build
@@
-1,7
+1,15
@@
# Copyright (c) 2022-2024, 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',
)