From c423fb5f46e7ef8b1ddef2291a86b5636b5e6415 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sun, 17 May 2015 18:26:48 -0300 Subject: [PATCH] build: switch to c++11 --- mk/board_avr.mk | 2 +- mk/board_native.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/board_avr.mk b/mk/board_avr.mk index 0e98d55752..28d390af3e 100644 --- a/mk/board_avr.mk +++ b/mk/board_avr.mk @@ -34,7 +34,7 @@ CPULDFLAGS= $($(TOOLCHAIN)_CPULDFLAGS) OPTFLAGS= $($(TOOLCHAIN)_OPTFLAGS) CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) -CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) +CXXFLAGS += -std=gnu++11 $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) CFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS) diff --git a/mk/board_native.mk b/mk/board_native.mk index 7e366bf0b4..80abc863d0 100644 --- a/mk/board_native.mk +++ b/mk/board_native.mk @@ -29,7 +29,7 @@ CPULDFLAGS = -g OPTFLAGS ?= -O3 -g CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) $(OPTFLAGS) -CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) +CXXFLAGS += -std=gnu++11 $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS) CFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) CFLAGS += $(WARNFLAGS) $(DEPFLAGS) $(COPTS) ASFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(DEPFLAGS)