Skip to content

Commit b8b2abc

Browse files
committed
Add documentation for IPHONEOS_DEPLOYMENT_TARGET usage.
1 parent ba9b069 commit b8b2abc

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

docs/reference/environment-variables.rst

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ 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 (e.g., ``13.0`` or
72+
``15.4``).
73+
74+
Another way of specifying the target iOS platform is to use the
75+
``-mios-version-min`` compile and link flags. However, it is not possible
76+
for ``meson-python`` to detect this, and it will not set the Python wheel
77+
platform tag accordingly.
78+
6479
.. envvar:: FORCE_COLOR
6580

6681
Setting this environment variable to any value forces the use of ANSI
@@ -69,11 +84,10 @@ Environment variables used by meson-python
6984

7085
.. envvar:: MACOSX_DEPLOYMENT_TARGET
7186

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.
87+
This environment variable is used to specify the target macOS platform major
88+
version to the Xcode development tools. If this environment variable is set,
89+
``meson-python`` will use the specified macOS version for the Python wheel
90+
platform tag instead than the macOS version of the build machine.
7791

7892
This variable must be set to macOS major versions only: ``10.9`` to
7993
``10.15``, ``11``, ``12``, ``13``, ...

0 commit comments

Comments
 (0)