Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/5605.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
iOS extension modules are now linked with the Python framework by default.
3 changes: 3 additions & 0 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ pub fn is_linking_libpython_for_target(target: &Triple) -> bool {
|| target.environment == Environment::Android
|| target.environment == Environment::Androideabi
|| target.operating_system == OperatingSystem::Cygwin
|| matches!(target.operating_system, OperatingSystem::IOS(_))
|| !is_extension_module()
}

Expand Down Expand Up @@ -988,6 +989,8 @@ impl CrossCompileConfig {
compatible |= matches!(target.operating_system, OperatingSystem::Darwin(_))
&& matches!(host.operating_system, OperatingSystem::Darwin(_));

compatible |= matches!(target.operating_system, OperatingSystem::IOS(_));

!compatible
}

Expand Down
Loading