When cross compiling, install a host version of llvm-config. <rdar://11187889>
[oota-llvm.git] / Makefile
index ec24862ad6fcefd9b6d0c5edb8ec2e025482bcb0..590fab1222c61620f1e514cab16f8fde05db5a78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,11 @@ endif
 ifeq ($(LLVM_CROSS_COMPILING),1)
 all:: cross-compile-build-tools
 
+install:: $(DESTDIR)$(PROJ_bindir)
+       $(Echo) Installing llvm-config-host
+       $(Verb) $(ProgInstall) $(BuildLLVMToolDir)/llvm-config \
+         $(DESTDIR)$(PROJ_bindir)/llvm-config-host
+
 clean::
        $(Verb) rm -rf BuildTools