aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-04-19 23:19:55 +0000
committerBob Wilson <bob.wilson@apple.com>2012-04-19 23:19:55 +0000
commitf2ae3467cedd9a54a11c39b713409c7243e72ecc (patch)
tree6bb71d7c162c736ea99569472b206342df1d6d3b /Makefile
parent8b74e5afda780d05a46c1a35f46ebfd625e41f1a (diff)
downloadexternal_llvm-f2ae3467cedd9a54a11c39b713409c7243e72ecc.zip
external_llvm-f2ae3467cedd9a54a11c39b713409c7243e72ecc.tar.gz
external_llvm-f2ae3467cedd9a54a11c39b713409c7243e72ecc.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ec24862..590fab1 100644
--- 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