X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=cb4abafd2899b24df07b2d2682d424448606f378;hb=8e589975ea4c00b3250c497649075890798172af;hp=01489a570f29e9ede618c308dbb08a3bcede0cc9;hpb=f456d37c4f6b70a5e5bd272fe9e2b01ab6ee9417;p=oota-llvm.git diff --git a/Makefile.rules b/Makefile.rules index 01489a570f2..cb4abafd289 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -322,7 +322,13 @@ endif ifeq ($(ENABLE_CXX1Y),1) CXX.Flags += -std=c++1y else - CXX.Flags += -std=c++11 + ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW)) + # MinGW and Cygwin are a bit stricter and lack things like + # 'strdup', 'stricmp', etc in c++11 mode. + CXX.Flags += -std=gnu++11 + else + CXX.Flags += -std=c++11 + endif endif ifeq ($(ENABLE_WERROR),1)