This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit aee6ad2aea0b72024393ca0d613b6858c0e734da Author: zhangyuan29 <[email protected]> AuthorDate: Mon Feb 17 09:47:04 2025 +0800 arch/tricore: tasking support Ninja The cctc compiler reads response files through -f instead of the default @file syntax, so a Ninja build fails to pass the long option lists. Set the response file flags for C, CXX and ASM to -f when the Ninja generator is used. Signed-off-by: zhangyuan29 <[email protected]> --- arch/tricore/src/cmake/tasking.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/tricore/src/cmake/tasking.cmake b/arch/tricore/src/cmake/tasking.cmake index 8103c11e92f..50abd5dbaab 100644 --- a/arch/tricore/src/cmake/tasking.cmake +++ b/arch/tricore/src/cmake/tasking.cmake @@ -44,6 +44,15 @@ set(ASMEXT asm CACHE INTERNAL "") +if(CMAKE_GENERATOR MATCHES "Ninja") + set(CMAKE_C_RESPONSE_FILE_FLAG "-f") + set(CMAKE_CXX_RESPONSE_FILE_FLAG "-f") + set(CMAKE_ASM_RESPONSE_FILE_FLAG "-f") + set(CMAKE_C_RESPONSE_FILE_LINK_FLAG "-f") + set(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "-f") + set(CMAKE_ASM_RESPONSE_FILE_LINK_FLAG "-f") +endif() + # override the ARCHIVE command set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> rcs <TARGET> <LINK_FLAGS> <OBJECTS>")
