Commit 2be0d0f4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

buildcommon: Always provide -O0 or -O3

The new SDK version has some compile flags that trigger a warning when
no optimization level is specified.
parent ddd444ac
......@@ -196,7 +196,9 @@ LDFLAGS="${LDFLAGS} -L${SYSROOT}/lib"
# Release or not?
if [ "$RELEASE" = 1 ]; then
EXTRA_CFLAGS="${EXTRA_CFLAGS} -DNDEBUG "
EXTRA_CFLAGS="${EXTRA_CFLAGS} -DNDEBUG -O3 "
else
EXTRA_CFLAGS="${EXTRA_CFLAGS} -O0 "
fi
echo -e "\e[1m\e[36mCFLAGS: ${CFLAGS}\e[0m"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment