projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bcfcd8
)
meson: build checksums with extra optimization flags.
author
Jeff Davis
<
[email protected]
>
Mon, 8 Sep 2025 19:29:42 +0000
(12:29 -0700)
committer
Jeff Davis
<
[email protected]
>
Mon, 8 Sep 2025 19:29:42 +0000
(12:29 -0700)
Use -funroll-loops and -ftree-vectorize when building checksum.c to
match what autoconf does.
Discussion: https://postgr.es/m/
a81f2f7ef34afc24a89c613671ea017e3651329c
[email protected]
Reviewed-by: Andres Freund <
[email protected]
>
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 c3e4a805862a97240168ebf4aee2b1648df93160..112f00ff36552287757be6706570ed2b26643edd 100644
(file)
--- 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',
)