aboutsummaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-03 19:47:14 +0000
committerEric Christopher <echristo@apple.com>2012-08-03 19:47:14 +0000
commit82120023861a85427f436dcb6f21a741e32a7896 (patch)
tree5f231bf8d876f6e91d0698a440047cdfaf144238 /Makefile.rules
parent07dc609c37663ee0d4179c7de605a841517f4525 (diff)
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 4 insertions, 0 deletions
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