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)))