Optionally enable the GNU99 standard when compiling.
This commit is contained in:
parent
5c29cef096
commit
82c7954211
1 changed files with 5 additions and 1 deletions
|
@ -371,8 +371,12 @@ endif
|
||||||
CPPFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \
|
CPPFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \
|
||||||
-I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \
|
-I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \
|
||||||
$(SYS_INCLUDES) -g -Os -w -Wall \
|
$(SYS_INCLUDES) -g -Os -w -Wall \
|
||||||
-ffunction-sections -fdata-sections
|
-ffunction-sections -fdata-sections $(EXTRA_CPPFLAGS)
|
||||||
|
|
||||||
|
ifndef USE_GNU99
|
||||||
CFLAGS = -std=gnu99
|
CFLAGS = -std=gnu99
|
||||||
|
endif
|
||||||
|
|
||||||
CXXFLAGS = -fno-exceptions
|
CXXFLAGS = -fno-exceptions
|
||||||
ASFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -I. -x assembler-with-cpp
|
ASFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -I. -x assembler-with-cpp
|
||||||
LDFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -Os $(EXTRA_LDFLAGS)
|
LDFLAGS = -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -Os $(EXTRA_LDFLAGS)
|
||||||
|
|
Loading…
Reference in a new issue