Bug 1714547 - Add cross-compile to linux build doc r=sylvestre,mhentges
[gecko.git] / build / docs / cross-compile.rst
blobb9ab59d8b8b52fa00b24051dda673712f1455886
1 =================
2 Cross-compilation
3 =================
5 If you are planning to perform cross-compilation e.g. for Linux/Aarch64, you
6 will probably want to use experimental feature ``--enable-bootstrap`` in your
7 ``.mozconfig``. Then, you just have to specify the the target arch, after which
8 the build system will automatically set up the sysroot.
10 For example, cross-compiling for Linux/Aarch64:
12 .. code-block:: text
14     ac_add_options --target=aarch64-linux-gnu
15     ac_add_options --enable-bootstrap