Skip to content

Commit

Permalink
Use correct machine cfg when preparing LLVMgold. Addresses issue rust…
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondLovesYou committed Apr 14, 2015
1 parent a3b002f commit ebef962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mk/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ $$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(call CFG_LIB_NAME_$(2),LTO): $$(LLVM_CONFIG_$
$$(Q)cp $$(LLVM_LIBDIR_$(2))/$$(call CFG_LIB_NAME_$(2),LTO) $$@


$$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) \
| sed 's/lib//'): $$(LLVM_CONFIG_$(2)) \
$$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(call CFG_LIB_NAME_$(2),LTO)
$$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) | sed 's/lib//'): \
$$(LLVM_CONFIG_$(2)) $$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(call CFG_LIB_NAME_$(2),LTO)
$$(Q)cp $$(LLVM_LIBDIR_$(2))/$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) \
| sed 's/lib//') $$@
endif
Expand Down
2 changes: 1 addition & 1 deletion mk/prepare.mk
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ prepare-target-$(2)-host-$(3)-$(1)-$(4): prepare-maybe-clean-$(4) \
$$(call PREPARE_LIB,libcompiler-rt.a) \
$$(if $$(filter $(3),$(2)),\
$$(if $$(findstring nacl,$$(PREPARE_TARGETS)),\
$$(call PREPARE_LIB,$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) | sed 's/lib//')) \
$$(call PREPARE_LIB,$$(shell echo $$(call CFG_LIB_NAME_$(3),LLVMgold) | sed 's/lib//')) \
$$(call PREPARE_LIB,$$(call CFG_LIB_NAME_$(3),LTO)),),),),),)
endef

Expand Down

0 comments on commit ebef962

Please sign in to comment.