Skip to content

Commit 441612c

Browse files
knizhnikKonstantin Knizhnik
andauthored
Prefetch on macos (#9875)
## Problem Prefetch is disabled at MacODS because `posix_fadvise` is not available. But Neon prefetch is not using this function and for testing at MacOS is it very convenient that prefetch is available. ## Summary of changes Define `USE_PREFETCH` in Makefile. --------- Co-authored-by: Konstantin Knizhnik <[email protected]>
1 parent 77630e5 commit 441612c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ifeq ($(UNAME_S),Linux)
3838
# Seccomp BPF is only available for Linux
3939
PG_CONFIGURE_OPTS += --with-libseccomp
4040
else ifeq ($(UNAME_S),Darwin)
41+
PG_CFLAGS += -DUSE_PREFETCH
4142
ifndef DISABLE_HOMEBREW
4243
# macOS with brew-installed openssl requires explicit paths
4344
# It can be configured with OPENSSL_PREFIX variable

0 commit comments

Comments
 (0)