@@ -61,6 +61,22 @@ Environment variables used by meson-python
6161.. _cross build definition file : https://mesonbuild.com/Cross-compilation.html
6262.. _cibuildwheel : https://cibuildwheel.readthedocs.io/en/stable/
6363
64+ .. envvar :: IPHONEOS_DEPLOYMENT_TARGET
65+
66+ This environment variable is used to specify the target iOS platform version
67+ to the Xcode development tools. If this environment variable is set,
68+ ``meson-python `` will use the specified iOS version for the Python wheel
69+ platform tag, instead than the iOS platform default of 13.0.
70+
71+ This variable must be set to a major/minor version, for example ``13.0 `` or
72+ ``15.4 ``.
73+
74+ Note that ``IPHONEOS_DEPLOYMENT_TARGET `` is the only supported mechanism
75+ for specifying the target iOS version. Although the iOS toolchain supports
76+ the use of ``-mios-version-min `` compile and link flags to set the target iOS
77+ version, ``meson-python `` will not set the Python wheel platform tag
78+ correctly unless ``IPHONEOS_DEPLOYMENT_TARGET `` is set.
79+
6480.. envvar :: FORCE_COLOR
6581
6682 Setting this environment variable to any value forces the use of ANSI
@@ -69,11 +85,10 @@ Environment variables used by meson-python
6985
7086.. envvar :: MACOSX_DEPLOYMENT_TARGET
7187
72- This environment variables is used of specifying the target macOS platform
73- major version to the Xcode development tools. If this environment variable
74- is set, ``meson-python `` will use the specified macOS version for the
75- Python wheel platform tag instead than the macOS version of the build
76- machine.
88+ This environment variable is used to specify the target macOS platform major
89+ version to the Xcode development tools. If this environment variable is set,
90+ ``meson-python `` will use the specified macOS version for the Python wheel
91+ platform tag instead than the macOS version of the build machine.
7792
7893 This variable must be set to macOS major versions only: ``10.9 `` to
7994 ``10.15 ``, ``11 ``, ``12 ``, ``13 ``, ...
@@ -84,10 +99,11 @@ Environment variables used by meson-python
8499 are currently designed to specify compatibility only with major version
85100 number granularity.
86101
87- Another way of specifying the target macOS platform is to use the
88- ``-mmacosx-version-min `` compile and link flags. However, it is not
89- possible for ``meson-python `` to detect this, and it will not set the
90- Python wheel platform tag accordingly.
102+ Note that ``MACOSX_DEPLOYMENT_TARGET `` is the only supported mechanism for
103+ specifying the target macOS version. Although the macOS toolchain supports
104+ the use of ``-mmacosx-version-min `` compile and link flags to set the target
105+ macOS version, ``meson-python `` will not set the Python wheel platform tag
106+ correctly unless ``MACOSX_DEPLOYMENT_TARGET `` is set.
91107
92108.. envvar :: MESON
93109
0 commit comments