[llvm-commits] [llvm] r155164 - /llvm/trunk/Makefile

Bob Wilson bob.wilson at apple.com
Thu Apr 19 16:19:55 PDT 2012


Author: bwilson
Date: Thu Apr 19 18:19:55 2012
New Revision: 155164

URL: http://llvm.org/viewvc/llvm-project?rev=155164&view=rev
Log:
When cross compiling, install a host version of llvm-config. <rdar://11187889>

Now that llvm-config is a binary instead of a script the version installed
during a cross compiled build cannot be run from the host.  When cross
compiling, install a separate llvm-config-host that will run on the host.

Modified:
    llvm/trunk/Makefile

Modified: llvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile?rev=155164&r1=155163&r2=155164&view=diff
==============================================================================
--- llvm/trunk/Makefile (original)
+++ llvm/trunk/Makefile Thu Apr 19 18:19:55 2012
@@ -102,6 +102,11 @@
 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
 





More information about the llvm-commits mailing list