Commit 169357d
committed
Feat: Implement support for 'riscv64-elf-gcc' toolchain
This commit introduces logic to detect and utilize the 'riscv64-elf-gcc'
compiler, commonly provided by Arch Linux and other distributions for
RISC-V embedded development.
The existing build system logic primarily checks for the
'riscv32-unknown-linux-gnu-gcc' and 'riscv64-unknown-elf-gcc'
toolchains.
The modified search priority is:
1. Risc-V 32 bit: `riscv32-unknown-linux-gnu-gcc`
2. Risc-V 64 bit: `riscv64-unknown-elf-gcc`
3. Risc-V (arch) 64 bit: `riscv64-elf-gcc`
I would also suggest that this order can be upgraded by searching for
the Risc-V 64 bit before searching for the 32 bit one.
**Notes:**
The Linux-targeting toolchain, 'riscv64-linux-gnu-gcc', is also
available on arch, further testing is needed to assess its suitability
versus the 'elf' variant for specific build configurations targeting
full operating systems.1 parent 45b20c8 commit 169357d
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments