1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

build system: use -std=gnu11 for avr8

This allows using the __flash qualifier to store data into flash.
This commit is contained in:
Marian Buschsieweke 2022-05-30 18:22:02 +02:00
parent e9333feac2
commit 7e8a0ae2d4
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -14,6 +14,9 @@ CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
CFLAGS_DBG ?= -ggdb -g3
CFLAGS_OPT ?= -Os
# Use of __flash requires gnu11 instead of c11
CFLAGS += -std=gnu11
CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG)