diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-11-27 06:13:25 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-11-27 06:13:25 +0000 |
commit | a10678d2924070f6cf9236107785bc46f36e52d3 (patch) | |
tree | aaa34a36c85628ce3459f63e432ae5c8e87029b3 /runtime/libcxx | |
parent | b816276fbbf719342540f4db696a908e2fabd6e0 (diff) |
Use libcxx makefile's do-installhdrs target. <rdar://problem/10397739>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libcxx')
-rw-r--r-- | runtime/libcxx/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/runtime/libcxx/Makefile b/runtime/libcxx/Makefile index a65c906e8d..a15fb522a6 100644 --- a/runtime/libcxx/Makefile +++ b/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 |