Skip to content

Commit b0761ba

Browse files
committedMay 19, 2015
[rebase]: mk: use host tools instead for make install
1 parent 0d930cb commit b0761ba

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
 

Diff for: ‎mk/cfg/x86_64-pc-windows-msvc.mk

+4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ CFG_GNU_TRIPLE_x86_64-pc-windows-msvc := x86_64-pc-win32
2626
# These two environment variables are scraped by the `./configure` script and
2727
# are necessary for `cl.exe` to find standard headers (the INCLUDE variable) and
2828
# for `link.exe` to find standard libraries (the LIB variable).
29+
ifdef CFG_MSVC_INCLUDE_PATH
2930
export INCLUDE := $(CFG_MSVC_INCLUDE_PATH)
31+
endif
32+
ifdef CFG_MSVC_LIB_PATH
3033
export LIB := $(CFG_MSVC_LIB_PATH)
34+
endif
3135

3236
# Unfortunately `link.exe` is also a program in `/usr/bin` on MinGW installs,
3337
# but it's not the one that we want. As a result we make sure that our detected

Diff for: ‎mk/prepare.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ define DEF_PREPARE_TARGET_N
122122
# Rebind PREPARE_*_LIB_DIR to point to rustlib, then install the libs for the targets
123123
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_WORKING_SOURCE_LIB_DIR=$$(PREPARE_SOURCE_LIB_DIR)/rustlib/$(2)/lib
124124
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_WORKING_DEST_LIB_DIR=$$(PREPARE_DEST_LIB_DIR)/rustlib/$(2)/lib
125-
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_SOURCE_BIN_DIR=$$(PREPARE_SOURCE_LIB_DIR)/rustlib/$(2)/bin
126-
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_DEST_BIN_DIR=$$(PREPARE_DEST_LIB_DIR)/rustlib/$(2)/bin
125+
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_SOURCE_BIN_DIR=$$(PREPARE_SOURCE_LIB_DIR)/rustlib/$(3)/bin
126+
prepare-target-$(2)-host-$(3)-$(1)-$(4): PREPARE_DEST_BIN_DIR=$$(PREPARE_DEST_LIB_DIR)/rustlib/$(3)/bin
127127
prepare-target-$(2)-host-$(3)-$(1)-$(4): prepare-maybe-clean-$(4) \
128128
$$(foreach crate,$$(TARGET_CRATES), \
129129
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(crate)) \
@@ -148,7 +148,7 @@ prepare-target-$(2)-host-$(3)-$(1)-$(4): prepare-maybe-clean-$(4) \
148148
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$(2),$$(crate)))),) \
149149
$$(foreach object,$$(INSTALLED_OBJECTS_$(2)),\
150150
$$(call PREPARE_LIB,$$(object))) \
151-
$$(foreach bin,$$(INSTALLED_BINS_$(2)),\
151+
$$(foreach bin,$$(INSTALLED_BINS_$(3)),\
152152
$$(call PREPARE_BIN,$$(bin))) \
153153
,),),)
154154
endef

0 commit comments

Comments
 (0)
Please sign in to comment.