FIX: Config page size for Redis Jemalloc on ARM64 (#776)

This commit is contained in:
Rafael dos Santos Silva 2024-03-01 17:14:57 -03:00 committed by GitHub
parent 62bdb930d9
commit 6765ecc554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ echo "$REDIS_HASH redis-$REDIS_VERSION.tar.gz" | sha256sum -c
tar zxf redis-$REDIS_VERSION.tar.gz
cd redis-$REDIS_VERSION
# aarch64 compatibility
if uname -m | grep -qi 'aarch64'; then
export JEMALLOC_CONFIGURE_OPTS="--with-lg-page=16"
fi
# Building and installing binaries.
make -j"$(nproc)" BUILD_TLS=yes && make install PREFIX=/usr