From e3b515904af29b69539ee4250884d765bca0a2ca Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 2 Sep 2024 18:20:41 +0900 Subject: [PATCH] msm_avx is enable except for macOS --- Makefile.onelib | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.onelib b/Makefile.onelib index 5755180..0236971 100644 --- a/Makefile.onelib +++ b/Makefile.onelib @@ -40,8 +40,9 @@ BINT_OBJ=$(MCL_DIR)/$(OBJ_DIR)/bint$(BIT).o ifeq ($(CPU),x86-64) _ARCH=amd64 - MSM=msm_avx - MCL_MSM?=1 + ifneq ($(UNAME_S),Darwin) + MCL_MSM?=1 + endif endif ifeq ($(CPU),aarch64) _ARCH=arm64 @@ -73,6 +74,9 @@ MIN_CFLAGS+=-DMCL_USE_LLVM=1 OBJS+=$(BASE_OBJ) endif ifeq ($(MCL_MSM),1) + ifeq ($(CPU),x86-64) + MSM=msm_avx + endif MIN_CFLAGS+=-DMCL_MSM=1 MSM_OBJ=$(MCL_DIR)/$(OBJ_DIR)/$(MSM).o OBJS+=$(MSM_OBJ)