From 8a8fc5fb1169119bb858e33f9409848b2ef82bb9 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Fri, 29 Nov 2024 11:44:28 -0500 Subject: [PATCH] [ci] add -std=c++11 to use unordered_map in ci --- commons/Makefile_common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons/Makefile_common.mk b/commons/Makefile_common.mk index b7794aa..046f67c 100644 --- a/commons/Makefile_common.mk +++ b/commons/Makefile_common.mk @@ -26,6 +26,7 @@ BUILT := built BINDIR := $(BIN) OBJDIR := $(BUILT) CCFLAGS += -c -Wall -g -DMCX_EMBED_CL -fno-strict-aliasing#-pedantic -std=c99 -mfpmath=sse -ffast-math -mtune=core2 +CXXFLAGS += -std=c++11 INCLUDEDIR := $(MMCDIR)/src -I$(MMCDIR)/src/zmat/easylzma -I$(MMCDIR)/src/ubj AROUTPUT += -o MAKE ?= make @@ -272,7 +273,7 @@ $(OBJDIR)/%$(OBJSUFFIX): %.cu ## Compile .cpp files ## $(OBJDIR)/%$(OBJSUFFIX): %.cpp @$(ECHO) Building $@ - $(CXX) $(CCFLAGS) $(USERCCFLAGS) -I$(INCLUDEDIR) -o $@ $< + $(CXX) $(CCFLAGS) $(CXXFLAGS) $(USERCCFLAGS) -I$(INCLUDEDIR) -o $@ $< ## Compile .cpp files ## %$(OBJSUFFIX): %.cpp