From 44be04f0f753b434ff5a5c59f42e633d817782bc Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 19 Jan 2020 16:32:30 +0200 Subject: [PATCH] python: add back -O3 to CFLAGS --- packages/python/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/python/build.sh b/packages/python/build.sh index 26856c868..0ad0f4d6e 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -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