mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:43:34 +08:00
selectively increase optimization -Os -> -O2
- targetted at modules/libraries that benefit without drastically increasing flash usage - ignored on boards with CONSTRAINED_FLASH set
This commit is contained in:
@@ -33,10 +33,9 @@
|
||||
|
||||
px4_add_library(AttitudeControl
|
||||
AttitudeControl.cpp
|
||||
AttitudeControl.hpp
|
||||
)
|
||||
target_include_directories(AttitudeControl
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
target_compile_options(AttitudeControl PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||
target_include_directories(AttitudeControl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
px4_add_unit_gtest(SRC AttitudeControlTest.cpp LINKLIBS AttitudeControl)
|
||||
|
||||
@@ -37,10 +37,12 @@ px4_add_module(
|
||||
MODULE modules__mc_att_control
|
||||
MAIN mc_att_control
|
||||
COMPILE_FLAGS
|
||||
${MAX_CUSTOM_OPT_LEVEL}
|
||||
SRCS
|
||||
mc_att_control_main.cpp
|
||||
mc_att_control.hpp
|
||||
DEPENDS
|
||||
mathlib
|
||||
AttitudeControl
|
||||
mathlib
|
||||
px4_work_queue
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user