Skip to content

Commit e3b5159

Browse files
committed
msm_avx is enable except for macOS
1 parent 0ffdc03 commit e3b5159

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile.onelib

+6-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ BINT_OBJ=$(MCL_DIR)/$(OBJ_DIR)/bint$(BIT).o
4040

4141
ifeq ($(CPU),x86-64)
4242
_ARCH=amd64
43-
MSM=msm_avx
44-
MCL_MSM?=1
43+
ifneq ($(UNAME_S),Darwin)
44+
MCL_MSM?=1
45+
endif
4546
endif
4647
ifeq ($(CPU),aarch64)
4748
_ARCH=arm64
@@ -73,6 +74,9 @@ MIN_CFLAGS+=-DMCL_USE_LLVM=1
7374
OBJS+=$(BASE_OBJ)
7475
endif
7576
ifeq ($(MCL_MSM),1)
77+
ifeq ($(CPU),x86-64)
78+
MSM=msm_avx
79+
endif
7680
MIN_CFLAGS+=-DMCL_MSM=1
7781
MSM_OBJ=$(MCL_DIR)/$(OBJ_DIR)/$(MSM).o
7882
OBJS+=$(MSM_OBJ)

0 commit comments

Comments
 (0)