Skip to content

Commit 4be6f0b

Browse files
committed
Merge branch 'dev'
2 parents 7ee34b6 + 4a455b1 commit 4be6f0b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
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+
ifeq ($(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)