@@ -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
123123prepare-target-$(2 ) -host-$(3 ) -$(1 ) -$(4 ) : PREPARE_WORKING_SOURCE_LIB_DIR=$$(PREPARE_SOURCE_LIB_DIR ) /rustlib/$(2 ) /lib
124124prepare-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
127127prepare-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 ,) ,) ,)
154154endef
0 commit comments