diff --git a/cmake/toolchains/stm32h750xx.cmake b/cmake/toolchains/stm32h750xx.cmake index 91f52c392..ce8b2c632 100644 --- a/cmake/toolchains/stm32h750xx.cmake +++ b/cmake/toolchains/stm32h750xx.cmake @@ -36,9 +36,9 @@ set(CMAKE_ASM_FLAGS "${OBJECT_GEN_FLAGS} -x assembler-with-cpp " CACHE INTERNAL # Ensure the ar plugin is loaded (needed for LTO) set(CMAKE_AR ${TOOLCHAIN_BIN_DIR}/${TOOLCHAIN}-gcc-ar) set(CMAKE_C_ARCHIVE_CREATE " qcs ") -set(CMAKE_C_ARCHIVE_FINISH true) +set(CMAKE_C_ARCHIVE_FINISH "") set(CMAKE_CXX_ARCHIVE_CREATE " qcs ") -set(CMAKE_CXX_ARCHIVE_FINISH true) +set(CMAKE_CXX_ARCHIVE_FINISH "") add_compile_definitions( CORE_CM7