File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ CFG_STDLIB :=$(call CFG_LIB_NAME,std)
50
50
CFG_LIBRUSTC :=$(call CFG_LIB_NAME,rustc)
51
51
52
52
ifdef CFG_DISABLE_SHAREDSTD
53
- CFG_STDLIB_DEFAULT := lib/libstd.rlib
53
+ CFG_STDLIB_DEFAULT = $( 1 ) / lib/libstd.rlib
54
54
else
55
- CFG_STDLIB_DEFAULT := $(CFG_STDLIB )
55
+ CFG_STDLIB_DEFAULT = $( 2 ) / $(CFG_STDLIB )
56
56
endif
57
57
58
58
# version-string calculation
@@ -165,7 +165,7 @@ define SREQ
165
165
ifdef CFG_DISABLE_SHAREDSTD
166
166
SREQ$(1) = stage$(1 ) /rustc$(X ) \
167
167
stage$(1 ) /$$(CFG_RUNTIME ) \
168
- stage$(1 ) / $$( CFG_STDLIB_DEFAULT ) \
168
+ $$( call CFG_STDLIB_DEFAULT, stage$(1 ) ,stage $( 1 ) ) \
169
169
stage$(1 ) /$$(CFG_RUSTLLVM ) \
170
170
stage$(1 ) /lib/glue.o \
171
171
stage$(1 ) /lib/main.o \
@@ -174,7 +174,7 @@ SREQ$(1) = stage$(1)/rustc$(X) \
174
174
else
175
175
SREQ$(1) = stage$(1 ) /rustc$(X ) \
176
176
stage$(1 ) /$$(CFG_RUNTIME ) \
177
- stage$(1 ) / $$( CFG_STDLIB_DEFAULT ) \
177
+ $$( call CFG_STDLIB_DEFAULT, stage$(1 ) ,stage $( 1 ) ) \
178
178
stage$(1 ) /$$(CFG_RUSTLLVM ) \
179
179
stage$(1 ) /lib/glue.o \
180
180
stage$(1 ) /lib/main.o \
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ stage$(2)/%.o: stage$(2)/%.s
50
50
@$$(call E, assemble [gcc]: $$@ )
51
51
$$(Q ) gcc $$(CFG_GCCISH_CFLAGS ) -o $$@ -c $$<
52
52
53
- stage$(2 ) /rustc$$(X ) : $$(COMPILER_CRATE ) $$(COMPILER_INPUTS ) \
54
- stage$(2 ) /$$(CFG_RUNTIME ) \
55
- stage$(1 ) / $$( CFG_STDLIB_DEFAULT ) \
56
- stage$(2 ) /$$(CFG_RUSTLLVM ) \
53
+ stage$(2 ) /rustc$$(X ) : $$(COMPILER_CRATE ) $$(COMPILER_INPUTS ) \
54
+ stage$(2 ) /$$(CFG_RUNTIME ) \
55
+ $$( call CFG_STDLIB_DEFAULT, stage$(1 ) ,stage $( 2 ) ) \
56
+ stage$(2 ) /$$(CFG_RUSTLLVM ) \
57
57
$$(SREQ$(1 ) )
58
58
@$$(call E, compile_and_link: $$@ )
59
59
$$(STAGE$(1 ) ) -L stage$(2 ) -o $$@ $$<
You can’t perform that action at this time.
0 commit comments