cpu/msp430: use gnu99 by default
This commit is contained in:
parent
99e75948ef
commit
192e79b175
@ -2,7 +2,11 @@
|
|||||||
export TARGET_ARCH ?= msp430
|
export TARGET_ARCH ?= msp430
|
||||||
|
|
||||||
# define build specific options
|
# define build specific options
|
||||||
CFLAGS_CPU = -mmcu=$(CPU_MODEL) -std=gnu99
|
CFLAGS_CPU = -mmcu=$(CPU_MODEL)
|
||||||
|
# default std set to gnu99 of not overwritten by user
|
||||||
|
ifeq (, $(filter -std=%, $(CFLAGS)))
|
||||||
|
export CFLAGS += -std=gnu99
|
||||||
|
endif
|
||||||
CFLAGS_LINK = -ffunction-sections -fdata-sections
|
CFLAGS_LINK = -ffunction-sections -fdata-sections
|
||||||
CFLAGS_DBG ?= -gdwarf-2
|
CFLAGS_DBG ?= -gdwarf-2
|
||||||
CFLAGS_OPT ?= -Os
|
CFLAGS_OPT ?= -Os
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user