diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-05-09 00:07:02 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-05-09 00:07:02 +0000 |
commit | 7789aae96db81c5768fd32fee4163df8e79cedac (patch) | |
tree | b95ddc99a4cf18dbfc89e75d257681da0f43c6d0 /llvm/tools/llvm-config | |
parent | 89919ccd17e4359508e6975dbca84a9770e1076e (diff) | |
download | bcm5719-llvm-7789aae96db81c5768fd32fee4163df8e79cedac.tar.gz bcm5719-llvm-7789aae96db81c5768fd32fee4163df8e79cedac.zip |
Do not install llvm-config-host for cross-builds of clang. rdar://11317847
My previous change to install llvm-config-host for cross-builds resulted
in that file being installed even when the normal llvm-config was not
installed, e.g., when building the install-clang target. Daniel suggested
this alternative, which solves the immediate problem and also avoids the gunk
in the top-level makefile.
llvm-svn: 156448
Diffstat (limited to 'llvm/tools/llvm-config')
-rw-r--r-- | llvm/tools/llvm-config/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/Makefile b/llvm/tools/llvm-config/Makefile index 3f11730a37d..e8c86929e18 100644 --- a/llvm/tools/llvm-config/Makefile +++ b/llvm/tools/llvm-config/Makefile @@ -57,3 +57,11 @@ $(ObjDir)/BuildVariables.inc: $(BUILDVARIABLES_SRCPATH) Makefile $(ObjDir)/.dir >> temp.sed $(Verb) $(SED) -f temp.sed < $< > $@ $(Verb) $(RM) temp.sed + +# When cross-compiling, install a version of llvm-config that runs on the host. +ifeq ($(LLVM_CROSS_COMPILING),1) +install:: $(DESTDIR)$(PROJ_bindir) + $(Echo) Installing llvm-config-host + $(Verb) $(ProgInstall) $(BuildLLVMToolDir)/llvm-config \ + $(DESTDIR)$(PROJ_bindir)/llvm-config-host +endif |