diff options
| author | Simon John <git@the-jedi.co.uk> | 2017-09-02 15:32:52 +0100 |
|---|---|---|
| committer | Simon John <git@the-jedi.co.uk> | 2017-09-02 15:32:52 +0100 |
| commit | fa82c3a9dbad998fd391dc9c2c4ca913744cc26d (patch) | |
| tree | 420a89e58715d7bffff1d0ca5de906705c0c2070 /Arduino.mk | |
| parent | 5fcd04cdef9b8378fe0a9cafe426321a62d9bdbd (diff) | |
Moved the LTO etc. flags from CXXFLAGS_STD to CXXFLAGS
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) |
