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:
Julian Oes
2016-09-30 08:11:51 +02:00
committed by Beat Küng
parent aa6d9e363f
commit 8ff237c69f
145 changed files with 154 additions and 283 deletions
+1 -2
View File
@@ -33,7 +33,6 @@
px4_add_module(
MODULE lib__controllib
COMPILE_FLAGS
-Os
SRCS
blocks.cpp
block/Block.cpp
@@ -42,4 +41,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 :
+1 -2
View File
@@ -33,10 +33,9 @@
px4_add_module(
MODULE lib__conversion
COMPILE_FLAGS
-Os
SRCS
rotation.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -33,10 +33,9 @@
px4_add_module(
MODULE lib__external_lgpl
COMPILE_FLAGS
-Os
SRCS
tecs/tecs.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -33,10 +33,9 @@
px4_add_module(
MODULE lib__geo_lookup
COMPILE_FLAGS
-Os
SRCS
geo_mag_declination.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -33,11 +33,10 @@
px4_add_module(
MODULE lib__launchdetection
COMPILE_FLAGS
-Os
SRCS
LaunchDetector.cpp
CatapultLaunchMethod.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -33,11 +33,10 @@
px4_add_module(
MODULE lib__mathlib
COMPILE_FLAGS
-Os
SRCS
math/test/test.cpp
math/Limits.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -33,7 +33,6 @@
px4_add_module(
MODULE lib__rc
COMPILE_FLAGS
-Os
-Wno-unused-result
SRCS
st24.c
@@ -43,4 +42,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 :
+1 -2
View File
@@ -33,10 +33,9 @@
px4_add_module(
MODULE lib__runway_takeoff
COMPILE_FLAGS
-Os
SRCS
RunwayTakeoff.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE lib__tailsitter_recovery
STACK_MAIN 400
COMPILE_FLAGS
-Os
SRCS
tailsitter_recovery.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -34,10 +34,9 @@ px4_add_module(
MODULE lib__terrain_estimation
STACK_MAIN 1024
COMPILE_FLAGS
-Os
SRCS
terrain_estimator.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :