mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
NuttX add compiler dependent: disable no-stringop-truncation
This commit is contained in:
committed by
Daniel Agar
parent
4d64065422
commit
c49c767d78
@@ -156,6 +156,9 @@ add_custom_command(
|
|||||||
)
|
)
|
||||||
add_custom_target(nuttx_copy_config_dir_target DEPENDS ${PX4_BINARY_DIR}/NuttX/nuttx_copy_config_dir.stamp)
|
add_custom_target(nuttx_copy_config_dir_target DEPENDS ${PX4_BINARY_DIR}/NuttX/nuttx_copy_config_dir.stamp)
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.3)
|
||||||
|
set(CMAKE_C_COMP_DEP_FLAGS -Wno-stringop-truncation)
|
||||||
|
endif()
|
||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Make.defs.in ${NUTTX_DIR}/Make.defs)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Make.defs.in ${NUTTX_DIR}/Make.defs)
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,8 @@ CFLAGS = $(ARCHINCLUDES) \
|
|||||||
-Wno-nonnull-compare \
|
-Wno-nonnull-compare \
|
||||||
-Wno-old-style-declaration \
|
-Wno-old-style-declaration \
|
||||||
-Wno-sign-compare \
|
-Wno-sign-compare \
|
||||||
-Wno-type-limits
|
-Wno-type-limits \
|
||||||
|
${CMAKE_C_COMP_DEP_FLAGS}
|
||||||
|
|
||||||
CXXFLAGS = $(ARCHXXINCLUDES) \
|
CXXFLAGS = $(ARCHXXINCLUDES) \
|
||||||
-std=c++14 \
|
-std=c++14 \
|
||||||
|
|||||||
Reference in New Issue
Block a user