diff --git a/modules/redisearch/Makefile b/modules/redisearch/Makefile index a56e9fc70..3f84bb98e 100644 --- a/modules/redisearch/Makefile +++ b/modules/redisearch/Makefile @@ -7,10 +7,14 @@ TARGET_MODULE = $(SRC_DIR)/bin/$(FULL_VARIANT)/search-community/redisearch.so LTO ?= 1 export LTO +# Use the committed C headers for Rust modules, rather than regenerating them +# from Rust source. Override with REDISEARCH_GENERATE_HEADERS=1. +REDISEARCH_GENERATE_HEADERS ?= 0 +export REDISEARCH_GENERATE_HEADERS + # Set INLINE_LSE_ATOMICS=1 for perf improvement on common ARM CPUs (i.e. Graviton2/3/4); no effect on x86 or macOS. # Default 0 keeps the binary runnable on pre-Armv8.1-a cores (Cortex-A72, Graviton1, RPi4) that would otherwise SIGILL at module load. INLINE_LSE_ATOMICS ?= 0 export INLINE_LSE_ATOMICS include ../common.mk -