Add a configure option to pass -std=c++11 on the command line.
[oota-llvm.git] / Makefile.rules
index 644c356370daaf0806deb2d7dd73cb5d639e764d..ebbaba8facf1d8a7e17f149382a6dbdaf5f9ea68 100644 (file)
@@ -317,6 +317,10 @@ ifeq ($(ENABLE_LIBCPP),1)
   LD.Flags +=  -stdlib=libc++
 endif
 
+ifeq ($(ENABLE_CXX11),1)
+  CXX.Flags += -std=c++11
+endif
+
 ifeq ($(ENABLE_PROFILING),1)
   BuildMode := $(BuildMode)+Profile
   CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g