mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
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:
parent
0d06e515af
commit
842a28f4a1
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue