X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile.x86_64;h=99364752f1b412a5f3a4aed769ccd51ab2c05406;hb=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;hp=677c05d93a1b693446fc356e9b3ffdc1753a72e3;hpb=f66b9c88267b26bd1322de9c1dc77c1716e91940;p=platform%2Fupstream%2Fopenblas.git diff --git a/Makefile.x86_64 b/Makefile.x86_64 index 677c05d..9936475 100644 --- a/Makefile.x86_64 +++ b/Makefile.x86_64 @@ -9,11 +9,36 @@ endif endif ifeq ($(CORE), SKYLAKEX) +ifndef DYNAMIC_ARCH ifndef NO_AVX512 CCOMMON_OPT += -march=skylake-avx512 FCOMMON_OPT += -march=skylake-avx512 +ifeq ($(OSNAME), CYGWIN_NT) +CCOMMON_OPT += -fno-asynchronous-unwind-tables endif +ifeq ($(OSNAME), WINNT) +ifeq ($(C_COMPILER), GCC) +CCOMMON_OPT += -fno-asynchronous-unwind-tables endif +endif +endif +endif +endif + +ifeq ($(CORE), HASWELL) +ifndef DYNAMIC_ARCH +ifndef NO_AVX2 +ifeq ($(C_COMPILER), GCC) +CCOMMON_OPT += -mavx2 +endif +ifeq ($(F_COMPILER), GFORTRAN) +FCOMMON_OPT += -mavx2 +endif +endif +endif +endif + + ifeq ($(OSNAME), Interix) ARFLAGS = -m x64