From 82120023861a85427f436dcb6f21a741e32a7896 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 3 Aug 2012 19:47:14 +0000 Subject: Add a configure option to pass -std=c++11 on the command line. rdar://11366674 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161251 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index 644c356370..ebbaba8fac 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 -- cgit v1.2.3-18-g5258