Python: Use -O3 level optimization (#11825)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user