From f019a3b69e8e587d961ad22c1d3dc73636d37ecb Mon Sep 17 00:00:00 2001 From: John Sully Date: Tue, 26 Feb 2019 00:00:04 -0500 Subject: [PATCH] Option to disable ASM spinlock Former-commit-id: 01ff36fc289449d6e0bf20731de079b6957bfac8 --- src/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile b/src/Makefile index 0379b1b2d..4ab7869e1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -44,14 +44,17 @@ endif endif endif +USEASM?=true # Do we use our assembly spinlock? ifeq ($(uname_S),Linux) ifneq ($(@@),32bit) +ifeq ($(USEASM),true) ASM_OBJ+= fastlock_x64.o CFLAGS+= -DASM_SPINLOCK CXXFLAGS+= -DASM_SPINLOCK endif endif +endif # To get ARM stack traces if Redis crashes we need a special C flag. ifneq (,$(filter aarch64 armv,$(uname_M)))