From b9f06a7670a995f9fea98dd79cec290f45ac5469 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 22 May 2023 16:48:55 +0800 Subject: [PATCH] mavx only for windows by default, let them eat march native. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b23823623..12702faa6 100644 --- a/Makefile +++ b/Makefile @@ -98,10 +98,10 @@ endif # TODO: probably these flags need to be tweaked on some architectures # feel free to update the Makefile for your architecture and send a pull request or issue ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686)) - # Use all CPU extensions that are available: - CFLAGS += -mavx + # Use all CPU extensions that are available: # old library NEEDS mf16c to work. so we must build with it. new one doesnt ifeq ($(OS),Windows_NT) + CFLAGS += -mavx BONUSCFLAGS1 += -mf16c BONUSCFLAGS2 += -mavx2 -msse3 -mfma else