File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,15 @@ ifneq ($(F_COMPILER), NAG)
104
104
FCOMMON_OPT += -march=armv8.4-a -mtune=neoverse-v1
105
105
endif
106
106
else
107
- CCOMMON_OPT += -march=armv8.4-a+sve -mtune=native
107
+ CCOMMON_OPT += -march=armv8.4-a+sve
108
+ ifneq ($(CROSS), 1)
109
+ CCOMMON_OPT += -mtune=native
110
+ endif
108
111
ifneq ($(F_COMPILER), NAG)
109
- FCOMMON_OPT += -march=armv8.4-a -mtune=native
112
+ FCOMMON_OPT += -march=armv8.4-a
113
+ ifneq ($(CROSS), 1)
114
+ FCOMMON_OPT += -mtune=native
115
+ endif
110
116
endif
111
117
endif
112
118
else
@@ -138,9 +144,15 @@ ifneq ($(F_COMPILER), NAG)
138
144
FCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
139
145
endif
140
146
else
141
- CCOMMON_OPT += -march=armv8.5-a+sve -mtune=native
147
+ CCOMMON_OPT += -march=armv8.5-a+sve
148
+ ifneq ($(CROSS), 1)
149
+ CCOMMON_OPT += -mtune=native
150
+ endif
142
151
ifneq ($(F_COMPILER), NAG)
143
- FCOMMON_OPT += -march=armv8.5-a -mtune=native
152
+ FCOMMON_OPT += -march=armv8.5-a
153
+ ifneq ($(CROSS), 1)
154
+ FCOMMON_OPT += -mtune=native
155
+ endif
144
156
endif
145
157
endif
146
158
else
You can’t perform that action at this time.
0 commit comments