mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 03:33:34 +08:00
Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis instead of individually for each module. This allows for different optimization options for SITL, NuttX, Snapdragon, etc.
This commit is contained in:
@@ -30,16 +30,14 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
set(MODULE_CFLAGS -Os)
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1100)
|
||||
px4_add_module(
|
||||
MODULE drivers__hott
|
||||
COMPILE_FLAGS
|
||||
${MODULE_CFLAGS}
|
||||
SRCS
|
||||
messages.cpp
|
||||
comms.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -34,10 +34,9 @@ px4_add_module(
|
||||
MODULE drivers__hott__hott_sensors
|
||||
MAIN hott_sensors
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
hott_sensors.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -34,10 +34,9 @@ px4_add_module(
|
||||
MODULE drivers__hott__hott_telemetry
|
||||
MAIN hott_telemetry
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
hott_telemetry.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Reference in New Issue
Block a user