Skip to content

Commit f3a8baa

Browse files
committed
auto merge of #11407 : alexcrichton/rust/fix-snap, r=brson
If we bootstrap a cross compile from a stage1 compiler, then the stage1 compiler already knows about the rustc => rustlib change, so we need to not add the extra flag if it's a stage0 version of a target from a stage1 of another target.
2 parents 464d1d0 + 004dae6 commit f3a8baa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mk/target.mk

+4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUNTIME_$(2)): \
5656

5757
# SNAP a5fa1d9 remove this after the stage0 snapshot from rules below
5858
ifeq ($(1),0)
59+
ifeq ($(3),$$(findstring $(3),$$(NON_BUILD_HOST)))
60+
LFLAGS_$(1)_$(2)_$(3) :=
61+
else
5962
LFLAGS_$(1)_$(2)_$(3) := -L $$(TLIB$(1)_T_$(2)_H_$(3))
63+
endif
6064
else
6165
LFLAGS_$(1)_$(2)_$(3) :=
6266
endif

0 commit comments

Comments
 (0)