We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e740c48 commit bb9cf76Copy full SHA for bb9cf76
Makefile.x86_64
@@ -30,8 +30,15 @@ endif
30
ifeq ($(CORE), COOPERLAKE)
31
ifndef DYNAMIC_ARCH
32
ifndef NO_AVX512
33
+ifeq ($(C_COMPILER), GCC)
34
+# cooperlake support was added in 10.1
35
+GCCVERSIONGTEQ10 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 10)
36
+GCCMINORVERSIONGTEQ1 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 1)
37
+ifeq ($(GCCVERSIONGTEQ10)$(GCCMINORVERSIONGTEQ1), 11)
38
CCOMMON_OPT += -march=cooperlake
39
FCOMMON_OPT += -march=cooperlake
40
+endif
41
42
ifeq ($(OSNAME), CYGWIN_NT)
43
CCOMMON_OPT += -fno-asynchronous-unwind-tables
44
FCOMMON_OPT += -fno-asynchronous-unwind-tables
0 commit comments