Skip to content

Commit 266775d

Browse files
committed
Ignore test_strftime_y2k when cross-compiling on Linux for 3.14+
1 parent af057a7 commit 266775d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,12 @@ if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
483483
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_explicit_bzero=no"
484484
fi
485485

486+
# On 3.14+ `test_strftime_y2k` fails when cross-compiling for `x86_64_v2` and `x86_64_v3` targets on
487+
# Linux, so we ignore it. See https://github.com/python/cpython/issues/128104
488+
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" && -n "${CROSS_COMPILING}" && "${PYBUILD_PLATFORM}" != "macos" ]]; then
489+
export PROFILE_TASK='-m test --pgo --ignore test_strftime_y2k'
490+
fi
491+
486492
# We use ndbm on macOS and BerkeleyDB elsewhere.
487493
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
488494
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-dbmliborder=ndbm"

0 commit comments

Comments
 (0)