mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
NuttX stackcheck exclude PX4 Matrix and Param
- instrumenting PX4 Matrix and Param methods is too burdensome - partially restore px4_fmu-v5_stackcheck and holybro_durandal-v1_stackcheck to match default configs
This commit is contained in:
@@ -78,9 +78,11 @@ function(px4_os_add_flags)
|
||||
if("${CONFIG_ARMV7M_STACKCHECK}" STREQUAL "y")
|
||||
message(STATUS "NuttX Stack Checking (CONFIG_ARMV7M_STACKCHECK) enabled")
|
||||
add_compile_options(
|
||||
-finstrument-functions
|
||||
-ffixed-r10
|
||||
)
|
||||
-finstrument-functions
|
||||
# instrumenting PX4 Matrix and Param methods is too burdensome
|
||||
-finstrument-functions-exclude-file-list=matrix/Matrix.hpp,px4_platform_common/param.h
|
||||
)
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user