mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 00:27:35 +08:00
fix missing stack check instrument_flags (#4593)
This commit is contained in:
@@ -439,6 +439,16 @@ function(px4_os_add_flags)
|
||||
|
||||
set(added_exe_linker_flags) # none currently
|
||||
|
||||
set(instrument_flags)
|
||||
if ("${config_nuttx_hw_stack_check_${BOARD}}" STREQUAL "y")
|
||||
set(instrument_flags
|
||||
-finstrument-functions
|
||||
-ffixed-r10
|
||||
)
|
||||
list(APPEND c_flags ${instrument_flags})
|
||||
list(APPEND cxx_flags ${instrument_flags})
|
||||
endif()
|
||||
|
||||
set(cpu_flags)
|
||||
if (${BOARD} STREQUAL "px4fmu-v1")
|
||||
set(cpu_flags
|
||||
|
||||
Reference in New Issue
Block a user