llvm.org GIT mirror llvm / 6447d52
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156448 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 7 years ago
2 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
100100 # If we're cross-compiling, build the build-hosted tools first
101101 ifeq ($(LLVM_CROSS_COMPILING),1)
102102 all:: cross-compile-build-tools
103
104 install:: $(DESTDIR)$(PROJ_bindir)
105 $(Echo) Installing llvm-config-host
106 $(Verb) $(ProgInstall) $(BuildLLVMToolDir)/llvm-config \
107 $(DESTDIR)$(PROJ_bindir)/llvm-config-host
108103
109104 clean::
110105 $(Verb) rm -rf BuildTools
5656 >> temp.sed
5757 $(Verb) $(SED) -f temp.sed < $< > $@
5858 $(Verb) $(RM) temp.sed
59
60 # When cross-compiling, install a version of llvm-config that runs on the host.
61 ifeq ($(LLVM_CROSS_COMPILING),1)
62 install:: $(DESTDIR)$(PROJ_bindir)
63 $(Echo) Installing llvm-config-host
64 $(Verb) $(ProgInstall) $(BuildLLVMToolDir)/llvm-config \
65 $(DESTDIR)$(PROJ_bindir)/llvm-config-host
66 endif