build(modules): remove MAX_CUSTOM_OPT_LEVEL from SIH and config-mode builds (#29208)

* build(simulation): remove MAX_CUSTOM_OPT_LEVEL from SIH build (back to -Os)

* build(build): remove MAX_CUSTOM_OPT_LEVEL on other config and idle modes

* build(control_allocation): remove MAX_CUSTOM_OPT_LEVEL from actuator effectiveness lib

* build(logger): use default optimization for setup helpers

* build(modules): remove size optimisation from ActuatorEffectiveness and follow_target_estimator

* build(flight_mode): remove MAX_CUSTOM_OPT_LEVEL from follow_target_estimator

---------

Co-authored-by: jonas <jonas.perolini@rigi.tech>
This commit is contained in:
Jonas Peroliniandjonas authored and GitHub committed 2026-10-14 20:21:22 -06:00
1 parent e146fe4cc6
commit 7cc4bc18b5
6 files changed
+5 -10

No files matched your search

@@ -35,8 +35,6 @@ px4_add_library(follow_target_estimator
TargetEstimator.cpp
)
target_compile_options(follow_target_estimator PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
target_link_libraries(follow_target_estimator
PRIVATE
mathlib
@@ -34,8 +34,6 @@
px4_add_module(
MODULE fw_autotune_attitude_control
MAIN fw_autotune_attitude_control
COMPILE_FLAGS
${MAX_CUSTOM_OPT_LEVEL}
SRCS
fw_autotune_attitude_control.cpp
fw_autotune_attitude_control.hpp
+5
View File
@@ -62,6 +62,11 @@ px4_add_module(
component_general_json # for checksums.h
)
# Optimize topic setup and directory parsing for size in MinSizeRel builds.
set_property(SOURCE logged_topics.cpp util_parse.cpp APPEND PROPERTY
COMPILE_OPTIONS "$<$<CONFIG:MinSizeRel>:-Os>"
)
px4_add_unit_gtest(SRC ULogMessagesTest.cpp)
if(BUILD_TESTING)
@@ -34,8 +34,6 @@
px4_add_module(
MODULE mc_autotune_attitude_control
MAIN mc_autotune_attitude_control
COMPILE_FLAGS
${MAX_CUSTOM_OPT_LEVEL}
SRCS
mc_autotune_attitude_control.cpp
mc_autotune_attitude_control.hpp
@@ -39,8 +39,6 @@ px4_add_library(zero_order_hover_thrust_ekf
px4_add_module(
MODULE modules__mc_hover_thrust_estimator
MAIN mc_hover_thrust_estimator
COMPILE_FLAGS
${MAX_CUSTOM_OPT_LEVEL}
SRCS
MulticopterHoverThrustEstimator.cpp
MulticopterHoverThrustEstimator.hpp
@@ -34,8 +34,6 @@
px4_add_module(
MODULE modules__simulation__simulator_sih
MAIN simulator_sih
COMPILE_FLAGS
${MAX_CUSTOM_OPT_LEVEL}
SRCS
aero.hpp
sih.cpp