Skip to content

Commit cd1c6dd

Browse files
committed
Include cpuid.h from clang
1 parent 70de8d8 commit cd1c6dd

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

cpython-unix/build-cpython.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,6 @@ if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_12}" ]; then
317317
patch -p1 -i ${ROOT}/patch-test-embed-prevent-segfault.patch
318318
fi
319319

320-
321-
# For Python 3.14+, use of `cpuid` is improperly guarded
322-
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" && "${CC}" = "musl-clang" ]]; then
323-
patch -p1 -i ${ROOT}/patch-blake-musl-314.patch
324-
fi
325-
326320
# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.
327321
# So we need to set both.
328322
CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC -I${TOOLS_PATH}/deps/include -I${TOOLS_PATH}/deps/include/ncursesw"
@@ -397,7 +391,7 @@ if [ "${CC}" = "musl-clang" ]; then
397391
# provided by musl. These are part of the include files that are part of clang.
398392
# But musl-clang eliminates them from the default include path. So copy them into
399393
# place.
400-
for h in /tools/${TOOLCHAIN}/lib/clang/*/include/*intrin.h /tools/${TOOLCHAIN}/lib/clang/*/include/{__wmmintrin_aes.h,__wmmintrin_pclmul.h,mm_malloc.h}; do
394+
for h in /tools/${TOOLCHAIN}/lib/clang/*/include/*intrin.h /tools/${TOOLCHAIN}/lib/clang/*/include/{__wmmintrin_aes.h,__wmmintrin_pclmul.h,mm_malloc.h,cpuid.h}; do
401395
filename=$(basename "$h")
402396
if [ -e "/tools/host/include/${filename}" ]; then
403397
echo "${filename} already exists; don't need to copy!"

cpython-unix/patch-blake-musl-314.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)