Package: python3.7 Version: 3.7.3-2 Severity: wishlist Tags: patch Dear Maintainer,
Please enable LTO and PGO for arm64 builds of python. These optimizations area already enabled for an exhaustive list of architectures, including the slowest of arm. Please find attached a small patch extending the list of architectures for both pgo and lto. Yours sincerely Josua Mayer -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (500, 'stable') Architecture: arm64 (aarch64) Kernel: Linux 5.1.0-trunk-arm64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python3.7 depends on: ii libpython3.7-stdlib 3.7.3-2 ii mime-support 3.62 ii python3.7-minimal 3.7.3-2 python3.7 recommends no packages. Versions of packages python3.7 suggests: ii binutils 2.31.1-16 pn python3.7-doc <none> pn python3.7-venv <none> -- no debconf information
diff --git a/debian/rules b/debian/rules index a43e5dd..6b1b34c 100755 --- a/debian/rules +++ b/debian/rules @@ -171,13 +171,13 @@ endif ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) ifeq ($(DEB_HOST_ARCH_OS),linux) - ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf i386 powerpc ppc64 ppc64el s390x)) + ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 powerpc ppc64 ppc64el s390x)) with_pgo := yes endif endif endif -ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf i386 powerpc ppc64 ppc64el s390x)) +ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 powerpc ppc64 ppc64el s390x)) with_lto := yes endif
diff --git a/debian/rules b/debian/rules index a43e5dd..6b1b34c 100755 --- a/debian/rules +++ b/debian/rules @@ -171,13 +171,13 @@ endif ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) ifeq ($(DEB_HOST_ARCH_OS),linux) - ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf i386 powerpc ppc64 ppc64el s390x)) + ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 powerpc ppc64 ppc64el s390x)) with_pgo := yes endif endif endif -ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 armel armhf i386 powerpc ppc64 ppc64el s390x)) +ifneq (,$(findstring $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 powerpc ppc64 ppc64el s390x)) with_lto := yes endif