162306a36Sopenharmony_ci.. SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciArch Support
462306a36Sopenharmony_ci============
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciCurrently, the Rust compiler (``rustc``) uses LLVM for code generation,
762306a36Sopenharmony_ciwhich limits the supported architectures that can be targeted. In addition,
862306a36Sopenharmony_cisupport for building the kernel with LLVM/Clang varies (please see
962306a36Sopenharmony_ciDocumentation/kbuild/llvm.rst). This support is needed for ``bindgen``
1062306a36Sopenharmony_ciwhich uses ``libclang``.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciBelow is a general summary of architectures that currently work. Level of
1362306a36Sopenharmony_cisupport corresponds to ``S`` values in the ``MAINTAINERS`` file.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci============  ================  ==============================================
1662306a36Sopenharmony_ciArchitecture  Level of support  Constraints
1762306a36Sopenharmony_ci============  ================  ==============================================
1862306a36Sopenharmony_ci``um``        Maintained        ``x86_64`` only.
1962306a36Sopenharmony_ci``x86``       Maintained        ``x86_64`` only.
2062306a36Sopenharmony_ci============  ================  ==============================================
2162306a36Sopenharmony_ci
22