xref: /linux/Documentation/rust/arch-support.rst (revision f82811e22b480a203a438d8e1f29af9c93ccbb0c)
1.. SPDX-License-Identifier: GPL-2.0
2
3Arch Support
4============
5
6Currently, the Rust compiler (``rustc``) uses LLVM for code generation,
7which limits the supported architectures that can be targeted. In addition,
8support for building the kernel with LLVM/Clang varies (please see
9Documentation/kbuild/llvm.rst). This support is needed for ``bindgen``
10which uses ``libclang``.
11
12Below is a general summary of architectures that currently work. Level of
13support corresponds to ``S`` values in the ``MAINTAINERS`` file.
14
15=============  ================  ==============================================
16Architecture   Level of support  Constraints
17=============  ================  ==============================================
18``loongarch``  Maintained        -
19``um``         Maintained        ``x86_64`` only.
20``x86``        Maintained        ``x86_64`` only.
21=============  ================  ==============================================
22
23