Try using -Oz on 32-bit arm as well after ndk r18
This commit is contained in:
parent
02c0668a9b
commit
eb99c23cf1
@ -613,14 +613,7 @@ termux_step_setup_toolchain() {
|
||||
if [ -n "$TERMUX_DEBUG" ]; then
|
||||
CFLAGS+=" -g3 -O1 -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
||||
else
|
||||
# -Oz seems good for clang, see https://github.com/android-ndk/ndk/issues/133.
|
||||
# However, on arm it has a lot of issues such as #1520, #1680, #1765 and
|
||||
# https://bugs.llvm.org/show_bug.cgi?id=35379, so use so use -Os there for now:
|
||||
if [ $TERMUX_ARCH = arm ]; then
|
||||
CFLAGS+=" -Os"
|
||||
else
|
||||
CFLAGS+=" -Oz"
|
||||
fi
|
||||
CFLAGS+=" -Oz"
|
||||
fi
|
||||
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user