mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
WIP startup_shutdown test with ASAN on
This commit is contained in:
committed by
Lorenz Meier
parent
f8d7c53537
commit
dc9a71b674
@@ -701,6 +701,7 @@ function(px4_add_common_flags)
|
||||
)
|
||||
endif()
|
||||
|
||||
# address sanitizer
|
||||
if ($ENV{MEMORY_DEBUG} MATCHES "1")
|
||||
message(STATUS "address sanitizer enabled")
|
||||
if ("${OS}" STREQUAL "nuttx")
|
||||
@@ -740,6 +741,11 @@ function(px4_add_common_flags)
|
||||
)
|
||||
endif()
|
||||
|
||||
# code coverage
|
||||
if ($ENV{PX4_CODE_COVERAGE} MATCHES "1")
|
||||
set(max_optimization -O0)
|
||||
endif()
|
||||
|
||||
if (NOT ${CMAKE_C_COMPILER_ID} MATCHES ".*Clang.*")
|
||||
list(APPEND _optimization_flags
|
||||
-fno-strength-reduce
|
||||
|
||||
5
cmake/configs/posix_sitl_test.cmake
Normal file
5
cmake/configs/posix_sitl_test.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
include(cmake/configs/posix_sitl_default.cmake)
|
||||
|
||||
set(config_sitl_rcS_dir
|
||||
posix-configs/SITL/init/test
|
||||
)
|
||||
Reference in New Issue
Block a user