File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,9 +104,15 @@ ifneq ($(F_COMPILER), NAG)
104104FCOMMON_OPT += -march=armv8.4-a -mtune=neoverse-v1
105105endif
106106else
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
108111ifneq ($(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
110116endif
111117endif
112118else
@@ -138,9 +144,15 @@ ifneq ($(F_COMPILER), NAG)
138144FCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
139145endif
140146else
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
142151ifneq ($(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
144156endif
145157endif
146158else
You can’t perform that action at this time.
0 commit comments