diff options
| author | John Whittington <john@jbrengineering.co.uk> | 2017-09-03 21:37:03 +0100 |
|---|---|---|
| committer | John Whittington <john@jbrengineering.co.uk> | 2017-09-03 21:37:03 +0100 |
| commit | 73426bc2339116641e9227d5d7af1a70e3dd23fa (patch) | |
| tree | 12ce3ae76cee36bf5f9130bad5de89508d4f0dfd /Arduino.mk | |
| parent | 04f0ee07280c823447afc4bb14b2ec6cf1b8e470 (diff) | |
| parent | 983db51764265435b007b69cea6d8a25075c83c0 (diff) | |
Merge branch 'master' of https://github.com/sudar/Arduino-Makefile
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1045,7 +1045,7 @@ endif ifndef CFLAGS_STD ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) - CFLAGS_STD = -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color + CFLAGS_STD = -std=gnu11 else CFLAGS_STD = endif @@ -1056,7 +1056,7 @@ endif ifndef CXXFLAGS_STD ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) - CXXFLAGS_STD = -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color + CXXFLAGS_STD = -std=gnu++11 else CXXFLAGS_STD = endif @@ -1069,7 +1069,9 @@ CFLAGS += $(CFLAGS_STD) CXXFLAGS += -fpermissive -fno-exceptions $(CXXFLAGS_STD) ASFLAGS += -x assembler-with-cpp ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) - ASFLAGS += -flto + ASFLAGS += -flto + CXXFLAGS += -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color + CFLAGS += -flto -fno-fat-lto-objects -fdiagnostics-color endif LDFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -O$(OPTIMIZATION_LEVEL) ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) |
