diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2018-03-18 22:36:23 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-18 22:36:23 +0530 |
| commit | 0809b5460617f2217d8b4b0f9a57758e220c429c (patch) | |
| tree | dca8317adc611502c59ce5028374c8dd83f15db2 /Arduino.mk | |
| parent | a7b8084ac6b9b4d94dd91b9b996243432a7de4b3 (diff) | |
| parent | 36b6b233eb161f2e086737116710e7667ad237a1 (diff) | |
Merge pull request #556 from wingunder/master
Added the DIAGNOSTICS_COLOR_WHEN var for controlling diagnostics-color.
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1108,10 +1108,11 @@ endif CFLAGS += $(CFLAGS_STD) CXXFLAGS += -fpermissive -fno-exceptions $(CXXFLAGS_STD) ASFLAGS += -x assembler-with-cpp +DIAGNOSTICS_COLOR_WHEN ?= always ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) ASFLAGS += -flto - CXXFLAGS += -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color - CFLAGS += -flto -fno-fat-lto-objects -fdiagnostics-color + CXXFLAGS += -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color=$(DIAGNOSTICS_COLOR_WHEN) + CFLAGS += -flto -fno-fat-lto-objects -fdiagnostics-color=$(DIAGNOSTICS_COLOR_WHEN) endif LDFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -O$(OPTIMIZATION_LEVEL) ifeq ($(shell expr $(CC_VERNUM) '>' 490), 1) |
