Enable LTO for RediSearch module when Redis is builed with modules

This commit is contained in:
Angel Yanev 2026-05-05 13:10:10 +03:00
parent 3e1afec688
commit de33dc7033
No known key found for this signature in database

View file

@ -3,5 +3,9 @@ MODULE_VERSION = v8.7.90
MODULE_REPO = https://github.com/redisearch/redisearch
TARGET_MODULE = $(SRC_DIR)/bin/$(FULL_VARIANT)/search-community/redisearch.so
# Enable link-time optimization for RediSearch by default. Override with LTO=0.
LTO ?= 1
export LTO
include ../common.mk