Skip to content

Commit 75ff237

Browse files
committed
Use the musl version from downloads in the metadata
1 parent 01172ad commit 75ff237

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ EOF
916916
${BUILD_PYTHON} ${ROOT}/generate_metadata.py ${ROOT}/metadata.json
917917
cat ${ROOT}/metadata.json
918918

919-
# TODO: Output a dynamic library version for musl
920919
if [ "${CC}" != "musl-clang" ]; then
921920
objdump -T ${LIBPYTHON_SHARED_LIBRARY} | grep GLIBC_ | awk '{print $5}' | awk -F_ '{print $2}' | sort -V | tail -n 1 > ${ROOT}/glibc_version.txt
922921
cat ${ROOT}/glibc_version.txt

cpython-unix/build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,12 @@ def build_cpython(
845845

846846
if "musl" in target_triple:
847847
crt_features.append("musl-dynamic")
848-
# TODO: Determine the dynamic musl libc version
848+
849+
musl_version = DOWNLOADS["musl"]["version"]
850+
crt_features.append(
851+
"musl-version:%s"
852+
% musl_version
853+
)
849854

850855
else:
851856
crt_features.append("glibc-dynamic")

0 commit comments

Comments
 (0)