summaryrefslogtreecommitdiffstats
path: root/clang/runtime/libcxx
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-09-30 20:24:28 +0000
committerBob Wilson <bob.wilson@apple.com>2011-09-30 20:24:28 +0000
commit1c99b57b595c8fff6500f5e290dea8f27d436af8 (patch)
treedc5c1d152528553ab34801b818e07d4adaeea3e1 /clang/runtime/libcxx
parent011dafba614c84e4855bacda6b494dcf14223ea3 (diff)
downloadbcm5719-llvm-1c99b57b595c8fff6500f5e290dea8f27d436af8.tar.gz
bcm5719-llvm-1c99b57b595c8fff6500f5e290dea8f27d436af8.zip
Install a copy of the libc++ headers with clang. <rdar://problem/10096516>
llvm-svn: 140876
Diffstat (limited to 'clang/runtime/libcxx')
-rw-r--r--clang/runtime/libcxx/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/clang/runtime/libcxx/Makefile b/clang/runtime/libcxx/Makefile
new file mode 100644
index 00000000000..a65c906e8da
--- /dev/null
+++ b/clang/runtime/libcxx/Makefile
@@ -0,0 +1,35 @@
+##===- clang/runtime/libcxx/Makefile -----------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+#
+# This file defines support for installing a copy of the libcxx headers where
+# the driver expects them.
+#
+##===----------------------------------------------------------------------===##
+
+CLANG_LEVEL := ../..
+include $(CLANG_LEVEL)/Makefile
+
+PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/lib/c++/v1
+
+# Expect libcxx to be in llvm/projects/libcxx
+LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
+
+ifneq ($(CLANG_NO_RUNTIME),1)
+ifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK)
+
+install-local::
+ mkdir -p $(PROJ_libcxx_hdrs)/ext
+ rsync -r --exclude=".*" $(LIBCXX_SRC_ROOT)/include/* $(PROJ_libcxx_hdrs)
+ chmod 755 $(PROJ_libcxx_hdrs)
+ chmod 644 $(PROJ_libcxx_hdrs)/*
+ chmod 755 $(PROJ_libcxx_hdrs)/ext
+ chmod 644 $(PROJ_libcxx_hdrs)/ext/*
+
+endif
+endif
OpenPOWER on IntegriCloud