@@ -167,14 +167,12 @@ jobs:
167167 - true
168168 interpreter :
169169 - switch-case
170+ - tail-call
170171 exclude :
171172 # Skip Win32 on free-threaded builds
172173 - { arch: Win32, free-threading: true }
173- include :
174- # msvc::musttail is currently only supported on x64,
175- # and only supported on 3.15+.
176- - { arch: x64, free-threading: false, interpreter: tail-call }
177- - { arch: x64, free-threading: true, interpreter: tail-call }
174+ # Skip Win32 on tail-call interpreter builds
175+ - { arch: Win32, interpreter: tail-call }
178176 uses : $/.github/workflows/reusable-windows.yml
179177 with :
180178 arch : ${{ matrix.arch }}
@@ -549,9 +547,17 @@ jobs:
549547 run : |
550548 "$BUILD_DIR/host-python/bin/python3" -m test test_sysconfig test_site test_embed
551549 - name : Configure cross build
552- run : ./configure --prefix="$BUILD_DIR/cross-python" --with-build-python="$BUILD_DIR/host-python/bin/python3"
550+ run : |
551+ # Exercise a native build whose builtin modules differ from the build Python.
552+ echo '_bisect _bisectmodule.c' > Modules/Setup.local
553+ ./configure --prefix="$BUILD_DIR/cross-python" --with-build-python="$BUILD_DIR/host-python/bin/python3"
553554 - name : Install cross Python
554555 run : make -j8 install
556+ - name : Check native extension modules with a build Python
557+ run : |
558+ "$BUILD_DIR/host-python/bin/python3" -c "import sys; assert '_bisect' not in sys.builtin_module_names"
559+ "$BUILD_DIR/cross-python/bin/python3" -c "import _bisect, sys; assert '_bisect' in sys.builtin_module_names"
560+ PYTHONSTRICTEXTENSIONBUILD=1 make checksharedmods
555561 - name : Display build info
556562 run : |
557563 "$BUILD_DIR/cross-python/bin/python3" -m test.pythoninfo
0 commit comments