mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: fix RISC-V ISA for ESP32-C3 with GCC 12.2
This commit is contained in:
parent
1ac169351b
commit
9a49dcd479
@ -241,7 +241,8 @@ CFLAGS += -D_CONST=const
|
||||
|
||||
# TODO no relaxation yet
|
||||
ifneq (,$(filter riscv%,$(TARGET_ARCH)))
|
||||
CFLAGS += -mno-relax -march=rv32imc -mabi=ilp32 -DRISCV_NO_RELAX
|
||||
CFLAGS += -mno-relax -march=rv32imc_zicsr_zifencei -mabi=ilp32 -DRISCV_NO_RELAX
|
||||
LINKFLAGS += -mno-relax -march=rv32imc_zicsr_zifencei -mabi=ilp32
|
||||
GCC_NEW_RISCV_ISA ?= $(shell echo "typedef int dont_be_pedantic;" | \
|
||||
$(TARGET_ARCH)-gcc -march=rv32imac -mabi=ilp32 \
|
||||
-misa-spec=2.2 -E - > /dev/null 2>&1 && \
|
||||
|
Loading…
Reference in New Issue
Block a user