mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
arch/riscv: use natural malign-data type
This commit is contained in:
parent
eaabcac205
commit
56165d22a4
@ -37,6 +37,9 @@ ifeq ($(TOOLCHAIN),llvm)
|
||||
TARGET_ARCH_LLVM := riscv32-none-elf
|
||||
else
|
||||
CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
|
||||
ifneq (,$(shell $(TARGET_ARCH)-gcc --help=target | grep '\-malign-data='))
|
||||
CFLAGS_CPU += -malign-data=natural
|
||||
endif
|
||||
endif
|
||||
CFLAGS_LINK = -ffunction-sections -fdata-sections
|
||||
CFLAGS_DBG ?= -g3
|
||||
|
Loading…
Reference in New Issue
Block a user