@@ -197,7 +197,7 @@ elseif(CPU STREQUAL "Cortex-M52")
197197 endif ()
198198elseif (CPU STREQUAL "Star-MC3" )
199199 set (CLANG_ARCH "armv8.1m.main" )
200- set (CPU_FEATURES "Star-MC3 " )
200+ set (CPU_FEATURES "star-mc3 " )
201201 if (MVE STREQUAL "NO_MVE" )
202202 if (FPU STREQUAL "NO_FPU" )
203203 set (CPU_FEATURES "${CPU_FEATURES} +nomve+nofp" )
@@ -212,25 +212,24 @@ elseif(CPU STREQUAL "Star-MC3")
212212 elseif (FPU STREQUAL "SP_FPU" )
213213 set (CPU_FEATURES "${CPU_FEATURES} +nomve.fp+nofp.dp" )
214214 elseif (FPU STREQUAL "DP_FPU" )
215- message (FATAL_ERROR "Error: Star-MC3 +nomve.fp is not supported!" )
215+ message (FATAL_ERROR "Error: star-mc3 +nomve.fp is not supported!" )
216216 endif ()
217217 elseif (MVE STREQUAL "FP_MVE" )
218218 if (FPU STREQUAL "NO_FPU" )
219- message (FATAL_ERROR "Error: Star-MC3 +nofp is not supported!" )
219+ message (FATAL_ERROR "Error: star-mc3 +nofp is not supported!" )
220220 elseif (FPU STREQUAL "SP_FPU" )
221- message (FATAL_ERROR "Error: Star-MC3+nofp.dp is not supported!" )
222- elseif (FPU STREQUAL "DP_FPU" )
223- set (CPU_FEATURES "${CPU_FEATURES} " )
221+ message (FATAL_ERROR "Error: star-mc3+nofp.dp is not supported!" )
224222 endif ()
225223 endif ()
226224 if (PACBTI STREQUAL "NO_PACBTI" )
227225 set (CPU_FEATURES "${CPU_FEATURES} +nopacbti" )
228226 endif ()
229227 if (FPU STREQUAL "NO_FPU" )
230- set (CLANG_MCPU "-mcpu= ${CPU_FEATURES} " )
228+ set (CLANG_MFLOATABI "soft " )
231229 else ()
232- set (CLANG_MCPU "-mcpu= ${CPU_FEATURES} -mfloat-abi= hard" )
230+ set (CLANG_MFLOATABI " hard" )
233231 endif ()
232+ set (CLANG_MCPU "${CPU_FEATURES} " )
234233elseif (CPU STREQUAL "Cortex-M55" )
235234 set (CLANG_ARCH "armv8.1m.main" )
236235 if (FPU STREQUAL "NO_FPU" )
0 commit comments