mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 04: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:
@@ -35,9 +35,5 @@ px4_add_library(drivers_accelerometer
|
||||
PX4Accelerometer.cpp
|
||||
PX4Accelerometer.hpp
|
||||
)
|
||||
target_link_libraries(drivers_accelerometer
|
||||
PRIVATE
|
||||
conversion
|
||||
drivers__device
|
||||
mathlib
|
||||
)
|
||||
target_compile_options(drivers_accelerometer PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||
target_link_libraries(drivers_accelerometer PRIVATE conversion drivers__device)
|
||||
|
||||
@@ -35,4 +35,5 @@ px4_add_library(drivers_gyroscope
|
||||
PX4Gyroscope.cpp
|
||||
PX4Gyroscope.hpp
|
||||
)
|
||||
target_compile_options(drivers_gyroscope PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
|
||||
target_link_libraries(drivers_gyroscope PRIVATE conversion drivers__device)
|
||||
|
||||
Reference in New Issue
Block a user