Python: Use -O3 level optimization (#11825)

This commit is contained in:
星外之神
2022-06-18 06:36:36 +08:00
committed by GitHub
parent de7ed2929b
commit b26a07e7de
2 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ else
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}${_pybasever}")
fi
pkgver=${_pybasever}.5
pkgrel=1
pkgrel=2
pkgdesc="A high-level scripting language (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
@@ -353,6 +353,8 @@ build() {
declare -a _extra_config
if check_option "debug" "n"; then
_extra_config+=("--enable-optimizations")
# Upstream defaults to -O3, so we can do too
CFLAGS+=" -O3"
# FIXME: https://github.com/msys2-contrib/cpython-mingw/issues/10
# _extra_config+=("--with-lto")
else

View File

@@ -8,7 +8,7 @@ die () {
}
cd "$(dirname "$0")" ||
die "Could not cd to mingw-w64-python3.9/"
die "Could not cd to mingw-w64-python3.10/"
git rev-parse --verify HEAD >/dev/null &&
git update-index -q --ignore-submodules --refresh &&