forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork3
Commit629a518
committed
[3.11]pythongh-114099: Refactor configure and Makefile to accomodate non-macOS frameworks (python#115120)
Part of the PEP 730 work to add iOS support.This change lays the groundwork for introducing iOS/tvOS/watchOSframeworks; it includes the structural refactoring needed so that iOSbranches can be added into in a subsequent PR.Summary of changes:* Updates config.sub to the 2024-01-01 release. This is the "as released" version of config.sub.* Adds a RESSRCDIR variable to allow sharing of macOS and iOS Makefile steps.* Adds an INSTALLTARGETS variable so platforms can customise which targets are actually installed. This will be used to exclude certain targets (e.g., binaries, manfiles) from iOS framework installs.* Adds a PYTHONFRAMEWORKINSTALLNAMEPREFIX variable; this is used as the install name for the library. This is needed to allow for iOS frameworks to specify an @rpath-based install name.* Evaluates MACHDEP earlier in the configure process so that ac_sys_system is available.* Modifies _PYTHON_HOST_PLATFORM evaluation for cross-platform builds so that the CPU architecture is differentiated from the host identifier. This will be used to generate a _PYTHON_HOST_PLATFORM definition that includes ABI information, not just CPU architecture.* Differentiates between SOABI_PLATFORM and PLATFORM_TRIPLET. SOABI_PLATFORM is used in binary module names, and includes the ABI, but not the OS or CPU architecture (e.g., math.cpython-313-iphonesimulator.dylib). PLATFORM_TRIPLET is used as the sys._multiarch value, and on iOS will contains the ABI and architecture (e.g., iphoneos-arm64). This differentiation hasn't historically been needed because while macOS is a multiarch platform, it uses a bare darwin as PLATFORM_TRIPLE.* Removes the use of the deprecated -Wl,-single_module flag when compiling macOS frameworks.* Some whitespace normalisation where there was a mix of spaces and tabs in a single block.1 parent1fd6eae commit629a518
File tree
6 files changed
+640
-475
lines changed- Misc/NEWS.d/next/Build
6 files changed
+640
-475
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| 124 | + | |
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
|
Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
| 184 | + | |
| 185 | + | |
184 | 186 |
| |
185 | 187 |
| |
186 | 188 |
| |
| |||
344 | 346 |
| |
345 | 347 |
| |
346 | 348 |
| |
| 349 | + | |
| 350 | + | |
347 | 351 |
| |
348 | 352 |
| |
349 | 353 |
| |
| |||
765 | 769 |
| |
766 | 770 |
| |
767 | 771 |
| |
768 |
| - | |
| 772 | + | |
769 | 773 |
| |
770 | 774 |
| |
771 | 775 |
| |
| |||
789 | 793 |
| |
790 | 794 |
| |
791 | 795 |
| |
792 |
| - | |
793 | 796 |
| |
794 | 797 |
| |
795 | 798 |
| |
796 | 799 |
| |
797 | 800 |
| |
798 |
| - | |
799 |
| - | |
| 801 | + | |
| 802 | + | |
800 | 803 |
| |
801 | 804 |
| |
802 | 805 |
| |
| |||
1747 | 1750 |
| |
1748 | 1751 |
| |
1749 | 1752 |
| |
1750 |
| - | |
| 1753 | + | |
1751 | 1754 |
| |
1752 | 1755 |
| |
1753 | 1756 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + |
0 commit comments
Comments
(0)