mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
buildsystem: optimize for size when building with debug
This commit is contained in:
parent
cfe1640715
commit
0dea1a8b17
@ -222,14 +222,17 @@ setup_toolchain() {
|
||||
fi
|
||||
|
||||
# compiler optimization, descending priority: speed, size, default
|
||||
if flag_enabled "speed" "no"; then
|
||||
if [ "${BUILD_WITH_DEBUG}" = "yes" ]; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_SIZE"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_SIZE"
|
||||
elif flag_enabled "speed" "no"; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_SPEED"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_SPEED"
|
||||
elif flag_enabled "size" "no"; then
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_SIZE"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_SIZE"
|
||||
else
|
||||
TARGET_CFLAGS+=" $CXXFLAGS_OPTIM_DEFAULT"
|
||||
TARGET_CFLAGS+=" $CFLAGS_OPTIM_DEFAULT"
|
||||
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_DEFAULT"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user