Configure RediSearch to avoid regenerating C headers for Rust modules (#15220)

Fixes the nightly build breakage.
It requires https://github.com/RediSearch/RediSearch/pull/9669 to be
merged first.
This commit is contained in:
Luca Palmieri 2026-05-19 09:04:29 +02:00 committed by GitHub
parent 0d06e515af
commit 842a28f4a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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