python: add back -O3 to CFLAGS

This commit is contained in:
Leonid Pliushch 2020-01-19 16:32:30 +02:00
parent 2f6c668832
commit 44be04f0f7
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ lib/python${_MAJOR_VERSION}/*/tests
"
termux_step_pre_configure() {
# -O3 gains some additional performance on at least aarch64.
CFLAGS="${CFLAGS/-Oz/-O3}"
# Needed when building with clang, as setup.py only probes
# gcc for include paths when finding headers for determining
# if extension modules should be built (specifically, the