Commit 61786e5
committed
Allow static, non-framework iOS builds
An iOS app can only load a signed framework, so a shared Python has to be built
as one. A static libpython is linked into the app binary and loads nothing at
runtime, so the requirement does not apply to it, but configure refused that
configuration outright.
Refuse it only where it cannot work: a shared build with no framework. The
LINKFORSHARED and MODULE_DEPS_SHARED framework references are gated on
enable_framework, as the Darwin arm above already does, since a build without a
framework has nothing to link against. Passing no framework option at all still
errors, so a non-framework build stays an explicit opt-in.1 parent e8158d1 commit 61786e5
2 files changed
Lines changed: 30 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | 582 | | |
584 | 583 | | |
585 | 584 | | |
| |||
689 | 688 | | |
690 | 689 | | |
691 | 690 | | |
692 | | - | |
| 691 | + | |
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
| |||
1689 | 1688 | | |
1690 | 1689 | | |
1691 | 1690 | | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1692 | 1697 | | |
1693 | 1698 | | |
1694 | 1699 | | |
| |||
3830 | 3835 | | |
3831 | 3836 | | |
3832 | 3837 | | |
3833 | | - | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
3834 | 3843 | | |
3835 | 3844 | | |
3836 | 3845 | | |
| |||
6755 | 6764 | | |
6756 | 6765 | | |
6757 | 6766 | | |
6758 | | - | |
6759 | | - | |
| 6767 | + | |
| 6768 | + | |
| 6769 | + | |
6760 | 6770 | | |
6761 | 6771 | | |
6762 | 6772 | | |
| |||
0 commit comments