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

Marian Buschsieweke notifications at github.com
Mon Jan 25 13:41:17 CET 2021


@maribu commented on this pull request.



> @@ -30,12 +30,19 @@ TARGET_ARCH_RISCV ?= \
 TARGET_ARCH ?= $(TARGET_ARCH_RISCV)
 
 # define build specific options
-CFLAGS_CPU   = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -msmall-data-limit=8
-CFLAGS_LINK  = -nostartfiles -ffunction-sections -fdata-sections
+CFLAGS_CPU   = -march=rv32imac -mabi=ilp32
+ifeq ($(TOOLCHAIN),llvm)
+  # Always use riscv32-none-elf as target triple for clang, as some
+  # autodetected gcc target triples are incompatible with clang
+  TARGET_ARCH := riscv32-none-elf 

```suggestion
  TARGET_ARCH := riscv32-none-elf
```

-- 
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#pullrequestreview-575357162
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210125/2d40b5c1/attachment-0001.htm>


More information about the notifications mailing list