Add -mavx2 to TARGET=HASWELL builds
to leverage improvements from PR#1921
@@ -25,6 +25,17 @@ endif
endif
endif
+ifeq ($(CORE), HASWELL)
+ifndef DYNAMIC_ARCH
+ifndef NO_AVX2
+CCOMMON_OPT += -mavx2
+FCOMMON_OPT += -mavx2
+endif
+endif
+endif
+
+
+
ifeq ($(OSNAME), Interix)
ARFLAGS = -m x64
endif
