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:
parent
e9333feac2
commit
7e8a0ae2d4
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user