mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 01:24:07 +08:00
CMakeLists: don't always optimize for size
Going forward the optimization flags should be set for a platform, rather than for each individual module.
This commit is contained in:
parent
7240fc78fe
commit
fd403b733d
@ -38,7 +38,7 @@ endif()
|
||||
px4_add_module(
|
||||
MODULE lib__ecl
|
||||
STACK_MAIN 6000
|
||||
COMPILE_FLAGS ${MODULE_CFLAGS} -Os
|
||||
COMPILE_FLAGS ${MODULE_CFLAGS}
|
||||
SRCS
|
||||
attitude_fw/ecl_controller.cpp
|
||||
attitude_fw/ecl_pitch_controller.cpp
|
||||
@ -62,4 +62,4 @@ px4_add_module(
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@ -35,10 +35,9 @@ px4_add_module(
|
||||
MAIN base
|
||||
STACK_MAIN 4096
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
base.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@ -35,10 +35,9 @@ px4_add_module(
|
||||
MAIN ringbuffer
|
||||
STACK_MAIN 4096
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
ringbuffer.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user