File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
# COMPILER_PREFIX = mingw32-
2
2
3
+ ifndef DYNAMIC_ARCH
4
+ ADD_CPUFLAGS = 1
5
+ else
6
+ ifdef TARGET_CORE
7
+ ADD_CPUFLAGS = 1
8
+ endif
9
+ endif
10
+
11
+ ifdef ADD_CPUFLAGS
3
12
ifdef HAVE_SSE
4
13
CCOMMON_OPT += -msse
14
+ ifneq ($(F_COMPILER), NAG)
5
15
FCOMMON_OPT += -msse
6
16
endif
7
-
17
+ endif
18
+ endif
8
19
9
20
ifeq ($(OSNAME), Interix)
10
21
ARFLAGS = -m x86
Original file line number Diff line number Diff line change 8
8
endif
9
9
endif
10
10
11
+
12
+ ifndef DYNAMIC_ARCH
13
+ ADD_CPUFLAGS = 1
14
+ else
15
+ ifdef TARGET_CORE
16
+ ADD_CPUFLAGS = 1
17
+ endif
18
+ endif
19
+
20
+ ifdef ADD_CPUFLAGS
11
21
ifdef HAVE_SSE3
12
22
CCOMMON_OPT += -msse3
13
23
ifneq ($(F_COMPILER), NAG)
44
54
endif
45
55
46
56
ifeq ($(CORE), SKYLAKEX)
47
- ifndef DYNAMIC_ARCH
48
57
ifndef NO_AVX512
49
58
CCOMMON_OPT += -march=skylake-avx512
50
59
ifneq ($(F_COMPILER), NAG)
62
71
endif
63
72
endif
64
73
endif
65
- endif
66
74
67
75
ifeq ($(CORE), COOPERLAKE)
68
- ifndef DYNAMIC_ARCH
69
76
ifndef NO_AVX512
70
77
ifeq ($(C_COMPILER), GCC)
71
78
# cooperlake support was added in 10.1
88
95
endif
89
96
endif
90
97
endif
91
- endif
92
98
93
99
ifdef HAVE_AVX2
94
100
ifndef NO_AVX2
@@ -120,6 +126,7 @@ endif
120
126
endif
121
127
endif
122
128
129
+ endif
123
130
124
131
125
132
ifeq ($(OSNAME), Interix)
You can’t perform that action at this time.
0 commit comments