Skip to content

Commit

Permalink
Add check to make sure mold supports riscv
Browse files Browse the repository at this point in the history
  • Loading branch information
MBCX committed Sep 5, 2024
1 parent 0114012 commit 49cde51
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,15 @@ To cross-compile Godot for RISC-V devices, we need to setup the following items:
make sure you see ``riscv64`` on the list of targets.
- `mold <https://github.com/rui314/mold/releases>`__. This fast linker,
is the only one that correctly links the resulting binary. Download it, extract it,
and make sure to add its ``bin`` folder to your PATH.
and make sure to add its ``bin`` folder to your PATH. Run
``mold --help | grep support`` to check if your version of Mold supports RISC-V.
If you don't see RISC-V, your Mold may need to be updated.

To make referencing our toolchain easier, we can set an environment
variable like this:

::

export RISCV_TOOLCHAIN_PATH="path to toolchain here"

This way, we won't have to manually set the directory location
Expand Down

0 comments on commit 49cde51

Please sign in to comment.