Skip to content
Open
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
14 changes: 14 additions & 0 deletions getting-started/setup-building.rst

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting started doesn't seem like the place for this, it's generally an advanced/rare use-case.

Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,21 @@ and how to build.
.. _PCBuild readme: https://github.com/python/cpython/blob/main/PCbuild/readme.txt
.. _Git for Windows download from the official Git website: https://git-scm.com/download/win

Linux Cross-Compilation
-----------------------

CPython supports cross-compilation on Linux for building Python
for a different target architecture. This requires a C compiler
and toolchain for the target platform, as well as a build Python
interpreter matching the version being built.

Cross-compilation can be configured using the ``--build`` and
``--host`` options. The ``--with-build-python`` option specifies
the Python interpreter used during the build.

For detailed instructions and configuration options, see the
`CPython cross-compilation documentation
<https://docs.python.org/3/using/configure.html#cross-compiling-options>`_.
.. _wasi-compiling:

WASI
Expand Down