Build: Convert +nomve to .no_mve for Clang Assembler
Clang ASM compiler uses different options than CLang C compiler so
flags needs to be converted. Same is already done for `no_dsp` and
`no_fp` but `no_mve` was forgotten.
Change-Id: I9cfdb8e458a9567d0236d0ba4f9b9c4def9c6042
Signed-off-by: Bohdan Hunko <Bohdan.Hunko@infineon.com>
diff --git a/toolchain_ARMCLANG.cmake b/toolchain_ARMCLANG.cmake
index 877c827..8aa5783 100644
--- a/toolchain_ARMCLANG.cmake
+++ b/toolchain_ARMCLANG.cmake
@@ -108,6 +108,7 @@
endif()
string(REGEX REPLACE "\\+nodsp" ".no_dsp" CMAKE_ASM_CPU_FLAG "${CMAKE_SYSTEM_PROCESSOR}")
+ string(REGEX REPLACE "\\+nomve" ".no_mve" CMAKE_ASM_CPU_FLAG "${CMAKE_ASM_CPU_FLAG}")
string(REGEX REPLACE "\\+nofp" ".no_fp" CMAKE_ASM_CPU_FLAG "${CMAKE_ASM_CPU_FLAG}")
else()
set(CMAKE_ASM_CPU_FLAG ${TFM_SYSTEM_ARCHITECTURE})