summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-11-27 06:13:25 +0000
committerBob Wilson <bob.wilson@apple.com>2011-11-27 06:13:25 +0000
commit800b2b42ed487602e2b260b30f3238445351c488 (patch)
tree4bb5d0e52cf522d523d61ab2c16d7913cacc237e
parent6aa6c0c3b70cd51e1243a43ca2881837b6c04a5f (diff)
downloadbcm5719-llvm-800b2b42ed487602e2b260b30f3238445351c488.tar.gz
bcm5719-llvm-800b2b42ed487602e2b260b30f3238445351c488.zip
Use libcxx makefile's do-installhdrs target. <rdar://problem/10397739>
llvm-svn: 145168
-rw-r--r--clang/runtime/libcxx/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/runtime/libcxx/Makefile b/clang/runtime/libcxx/Makefile
index a65c906e8da..a15fb522a6e 100644
--- a/clang/runtime/libcxx/Makefile
+++ b/clang/runtime/libcxx/Makefile
@@ -15,7 +15,7 @@
CLANG_LEVEL := ../..
include $(CLANG_LEVEL)/Makefile
-PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/lib/c++/v1
+PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/lib
# Expect libcxx to be in llvm/projects/libcxx
LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
@@ -24,12 +24,8 @@ 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/*
+ $(MAKE) -C $(LIBCXX_SRC_ROOT) \
+ HEADER_DIR=$(PROJ_libcxx_hdrs) do-installhdrs
endif
endif
OpenPOWER on IntegriCloud