Merge pull request #442 from sej7278/master
Change CXXFLAGS_STD to match upstream
This commit is contained in:
commit
b971b05929
2 changed files with 12 additions and 4 deletions
14
Arduino.mk
14
Arduino.mk
|
@ -472,8 +472,12 @@ ifndef AVR_TOOLS_PATH
|
||||||
AVR_TOOLS_PATH = $(AVR_TOOLS_DIR)/bin
|
AVR_TOOLS_PATH = $(AVR_TOOLS_DIR)/bin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ARDUINO_LIB_PATH = $(ARDUINO_DIR)/libraries
|
ifndef ARDUINO_LIB_PATH
|
||||||
$(call show_config_variable,ARDUINO_LIB_PATH,[COMPUTED],(from ARDUINO_DIR))
|
ARDUINO_LIB_PATH = $(ARDUINO_DIR)/libraries
|
||||||
|
$(call show_config_variable,ARDUINO_LIB_PATH,[COMPUTED],(from ARDUINO_DIR))
|
||||||
|
else
|
||||||
|
$(call show_config_variable,ARDUINO_LIB_PATH,[USER])
|
||||||
|
endif
|
||||||
|
|
||||||
# 1.5.x platform dependent libs path
|
# 1.5.x platform dependent libs path
|
||||||
ifndef ARDUINO_PLATFORM_LIB_PATH
|
ifndef ARDUINO_PLATFORM_LIB_PATH
|
||||||
|
@ -1035,7 +1039,11 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CXXFLAGS_STD
|
ifndef CXXFLAGS_STD
|
||||||
CXXFLAGS_STD =
|
ifeq ($(shell expr $(ARDUINO_VERSION) '>' 150), 1)
|
||||||
|
CXXFLAGS_STD = -std=gnu++11 -fno-threadsafe-statics
|
||||||
|
else
|
||||||
|
CXXFLAGS_STD =
|
||||||
|
endif
|
||||||
$(call show_config_variable,CXXFLAGS_STD,[DEFAULT])
|
$(call show_config_variable,CXXFLAGS_STD,[DEFAULT])
|
||||||
else
|
else
|
||||||
$(call show_config_variable,CXXFLAGS_STD,[USER])
|
$(call show_config_variable,CXXFLAGS_STD,[USER])
|
||||||
|
|
|
@ -929,7 +929,7 @@ CFLAGS_STD = = -std=gnu89
|
||||||
|
|
||||||
Controls, *exclusively*, which C++ standard is to be used for compilation.
|
Controls, *exclusively*, which C++ standard is to be used for compilation.
|
||||||
|
|
||||||
Defaults to `undefined`
|
Defaults to `undefined` on 1.0 or `-std=gnu++11 -fno-threadsafe-statics` on 1.5+
|
||||||
|
|
||||||
Possible values:
|
Possible values:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue