Skip to content

Commit dd181ce

Browse files
committed
unix: conditionally copy libffi archive to Python build environment
1 parent 262342f commit dd181ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpython-unix/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ def build_cpython(
823823
# TODO support bdb/gdbm toggle
824824
packages = {
825825
"bzip2",
826-
"libffi",
827826
"xz",
828827
"zlib",
829828
}
@@ -836,6 +835,10 @@ def build_cpython(
836835
if libedit:
837836
packages.add("libedit")
838837

838+
libffi = target_triple not in ("aarch64-apple-ios", "x86_64-apple-ios")
839+
if libffi:
840+
packages.add("libffi")
841+
839842
if libressl:
840843
packages.add("libressl")
841844
else:

0 commit comments

Comments
 (0)