From 842a28f4a190b815376daa8260e89cd8cd436b9b Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Tue, 19 May 2026 09:04:29 +0200 Subject: [PATCH] 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. --- modules/redisearch/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -