[riot-notifications] [RIOT-OS/RIOT] fe310: Support compilation with clang (#15176)

Marian Buschsieweke notifications at github.com
Mon Jan 25 11:21:27 CET 2021


@maribu commented on this pull request.



> +ifneq ($(TOOLCHAIN),llvm)
+  CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
+endif

Most GCC toolchains can compile for both `riscv32-none-elf` and `riscv64-none-elf`. Hence, `riscv-none-elf` is the most technically correct target triplet for a multilib GCC - or at least it is equally wrong as `riscv32-none-elf` but less confusing.

But in the end it doesn't matter what is most technically correct from a theoretical point of view. In practice, nobody is using `riscv32-none-elf-gcc`. So the current approach to just pick whatever target triple GCC is using will remain, as this is the only way this actually works in practice.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15176#discussion_r563609419
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210125/6e2f9dbe/attachment.htm>


More information about the notifications mailing list