forked from nuttx/nuttx-update
arch/risc-v/src/cmake/Toolchain.cmake: Msys2 Cmake fixed nuttx/config.h: No such file or directory
fixed /qemu-rv/qemu_rv_head.S:25:10: fatal error: nuttx/config.h: No such file or directory 25 | #include <nuttx/config.h> | ^~~~~~~~~~~~~~~~ compilation terminated. added # override the responsible file flag if(CMAKE_GENERATOR MATCHES "Ninja") set(CMAKE_C_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @") set(CMAKE_CXX_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @") set(CMAKE_ASM_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @") endif()
This commit is contained in:
parent
573115734d
commit
430c2ecf46
1 changed files with 8 additions and 0 deletions
|
@ -110,6 +110,14 @@ endif()
|
|||
|
||||
set(NO_LTO "-fno-lto")
|
||||
|
||||
# override the responsible file flag
|
||||
|
||||
if(CMAKE_GENERATOR MATCHES "Ninja")
|
||||
set(CMAKE_C_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @")
|
||||
set(CMAKE_CXX_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @")
|
||||
set(CMAKE_ASM_RESPONSE_FILE_FLAG "$DEFINES $INCLUDES $FLAGS @")
|
||||
endif()
|
||||
|
||||
# override the ARCHIVE command
|
||||
set(CMAKE_ARCHIVE_COMMAND "<CMAKE_AR> rcs <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||
set(CMAKE_RANLIB_COMMAND "<CMAKE_RANLIB> <TARGET>")
|
||||
|
|
Loading…
Reference in a new issue