Skip to content

Commit

Permalink
Fix issue rust-lang#16. I hate make varibles.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondLovesYou committed Apr 13, 2015
1 parent c119e27 commit 015af57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions mk/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ else
$$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(call CFG_LIB_NAME_$(2),LTO): $$(LLVM_CONFIG_$(2))
$$(Q)cp $$(LLVM_LIBDIR_$(2))/$$(call CFG_LIB_NAME_$(2),LTO) $$@

LLVMgold_NAME_$(2) := $$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) | sed 's/lib//')

$$(TROOT$(1)_T_$(2)_H_$(2))/lib/$$(LLVMgold_NAME_$(2)): $$(LLVM_CONFIG_$(2)) \
$$(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))/$$(LLVMgold_NAME_$(2)) $$@
$$(Q)cp $$(LLVM_LIBDIR_$(2))/$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) \
| sed 's/lib//') $$@
endif

endef
Expand Down
2 changes: 1 addition & 1 deletion mk/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ HSREQ$(1)_H_$(3) = \
tmp/install-debugger-scripts$(1)_H_$(3)-$$(call TRIPLE_TO_DEBUGGER_SCRIPT_SETTING,$(3)).done

ifneq (le32-unknown-nacl,$(3))
HSREQ$(1)_H_$(3) += $$(TROOT$(1)_T_$(3)_H_$(3))/lib/$$(LLVMgold_NAME_$(3))
HSREQ$(1)_H_$(3) += $$(TROOT$(1)_T_$(3)_H_$(3))/lib/$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) | sed 's/lib//')
endif
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,$$(LLVMgold_NAME_$(3))) \
$$(call PREPARE_LIB,$$(shell echo $$(call CFG_LIB_NAME_$(2),LLVMgold) | sed 's/lib//')) \
$$(call PREPARE_LIB,$$(call CFG_LIB_NAME_$(3),LTO)),),),),),)
endef

Expand Down

0 comments on commit 015af57

Please sign in to comment.