summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-11 22:51:42 +0000
committerEric Christopher <echristo@apple.com>2011-11-11 22:51:42 +0000
commitbee515f66baf4f7858d30c2fe6657d35f177dfcd (patch)
tree7021bd540f4cf03404871704458e01ae7c48dc02 /Makefile.rules
parentc3937b97c00a857dff3528895e71ecfbc7ff3a28 (diff)
downloadllvm-bee515f66baf4f7858d30c2fe6657d35f177dfcd.tar.gz
llvm-bee515f66baf4f7858d30c2fe6657d35f177dfcd.tar.bz2
llvm-bee515f66baf4f7858d30c2fe6657d35f177dfcd.tar.xz
Add an option '--enable-libcpp' that will have the compiler pass on
options to use libc++ as the default c++ library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 6b68cf2c6b..49f5edd9d8 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -301,8 +301,10 @@ else
endif
endif
-#CXX.Flags += -stdlib=libc++
-#LD.Flags += -stdlib=libc++
+ifeq ($(ENABLE_LIBCPP),1)
+ CXX.Flags += -stdlib=libc++
+ LD.Flags += -stdlib=libc++
+endif
ifeq ($(ENABLE_PROFILING),1)
BuildMode := $(BuildMode)+Profile