Fix some make variables in tests.mk
This commit is contained in:
parent
c065280a0b
commit
ed106dd6ea
2 changed files with 25 additions and 17 deletions
36
Makefile.in
36
Makefile.in
|
@ -168,25 +168,33 @@ LLC := $(CFG_LLVM_BINDIR)/llc$(X)
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
define SREQ
|
define SREQ
|
||||||
|
|
||||||
|
TARGET_ROOT$(1)$(2) = stage$(1)/lib/rustc/$(2)
|
||||||
|
TARGET_BIN$(1)$(2) = $(TARGET_ROOT$(1)$(2))/bin
|
||||||
|
TARGET_LIB$(1)$(2) = $(TARGET_ROOT$(1)$(2))/lib
|
||||||
|
HOST_ROOT$(1) = $(TARGET_ROOT$(1)$$(CFG_HOST_TRIPLE))
|
||||||
|
HOST_BIN$(1) = $(TARGET_BIN$(1)$$(CFG_HOST_TRIPLE))
|
||||||
|
HOST_LIB$(1) = $(TARGET_LIB$(1)$$(CFG_HOST_TRIPLE))
|
||||||
|
|
||||||
ifdef CFG_DISABLE_SHAREDSTD
|
ifdef CFG_DISABLE_SHAREDSTD
|
||||||
SREQ$(1)$(2) = stage$(1)/bin/rustc$(X) \
|
SREQ$(1)$(2) = $(HOST_BIN$(1))/rustc$(X) \
|
||||||
stage$(1)/lib/$$(CFG_RUNTIME) \
|
$(HOST_LIB$(1))/$$(CFG_RUNTIME) \
|
||||||
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(1)) \
|
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(1)) \
|
||||||
stage$(1)/lib/$$(CFG_RUSTLLVM) \
|
$(HOST_LIB$(1))/$$(CFG_RUSTLLVM) \
|
||||||
stage$(1)/lib/rustc/$(2)/$$(CFG_RUNTIME) \
|
$(TARGET_LIB$(1)$(2))/$$(CFG_RUNTIME) \
|
||||||
stage$(1)/lib/rustc/$(2)/$$(CFG_STDLIB) \
|
$(TARGET_LIB$(1)$(2))/$$(CFG_STDLIB) \
|
||||||
stage$(1)/lib/rustc/$(2)/intrinsics.bc \
|
$(TARGET_LIB$(1)$(2))/intrinsics.bc \
|
||||||
stage$(1)/lib/rustc/$(2)/main.o \
|
$(TARGET_LIB$(1)$(2))/main.o \
|
||||||
$$(MKFILES)
|
$$(MKFILES)
|
||||||
else
|
else
|
||||||
SREQ$(1)$(2) = stage$(1)/bin/rustc$(X) \
|
SREQ$(1)$(2) = $(HOST_BIN$(1))/rustc$(X) \
|
||||||
stage$(1)/lib/$$(CFG_RUNTIME) \
|
$(HOST_LIB$(1))/$$(CFG_RUNTIME) \
|
||||||
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(1)) \
|
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(1)) \
|
||||||
stage$(1)/lib/$$(CFG_RUSTLLVM) \
|
$(HOST_LIB$(1))/$$(CFG_RUSTLLVM) \
|
||||||
stage$(1)/lib/rustc/$(2)/$$(CFG_RUNTIME) \
|
$(TARGET_LIB$(1)$(2))/$$(CFG_RUNTIME) \
|
||||||
stage$(1)/lib/rustc/$(2)/$$(CFG_STDLIB) \
|
$(TARGET_LIB$(1)$(2))/$$(CFG_STDLIB) \
|
||||||
stage$(1)/lib/rustc/$(2)/intrinsics.bc \
|
$(TARGET_LIB$(1)$(2))/intrinsics.bc \
|
||||||
stage$(1)/lib/rustc/$(2)/main.o \
|
$(TARGET_LIB$(1)$(2))/main.o \
|
||||||
$$(MKFILES)
|
$$(MKFILES)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ check-stage$(2): tidy \
|
||||||
check-stage$(2)-std: test/stdtest.stage$(2).out \
|
check-stage$(2)-std: test/stdtest.stage$(2).out \
|
||||||
|
|
||||||
test/stdtest.stage$(2)$$(X): $$(STDTEST_CRATE) $$(STDTEST_INPUTS) \
|
test/stdtest.stage$(2)$$(X): $$(STDTEST_CRATE) $$(STDTEST_INPUTS) \
|
||||||
$$(SREQ$(2)$(CFG_HOST_TRIPLE))
|
$$(SREQ$(2)$$(CFG_HOST_TRIPLE))
|
||||||
@$$(call E, compile_and_link: $$@)
|
@$$(call E, compile_and_link: $$@)
|
||||||
$$(STAGE$(2)) -o $$@ $$< --test
|
$$(STAGE$(2)) -o $$@ $$< --test
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ test/rustctest.stage$(2)$$(X): $$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
|
||||||
stage$(2)/lib/$$(CFG_RUNTIME) \
|
stage$(2)/lib/$$(CFG_RUNTIME) \
|
||||||
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(2)) \
|
$$(call CFG_STDLIB_DEFAULT,stage$(1),stage$(2)) \
|
||||||
stage$(2)/lib/$$(CFG_RUSTLLVM) \
|
stage$(2)/lib/$$(CFG_RUSTLLVM) \
|
||||||
$$(SREQ$(1)$(CFG_HOST_TRIPLE))
|
$$(SREQ$(1)$$(CFG_HOST_TRIPLE))
|
||||||
@$$(call E, compile_and_link: $$@)
|
@$$(call E, compile_and_link: $$@)
|
||||||
$$(STAGE$(1)) -o $$@ $$< --test
|
$$(STAGE$(1)) -o $$@ $$< --test
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ PRETTY_PRETTY_ARGS$(2) := $$(CTEST_COMMON_ARGS$(2)) \
|
||||||
|
|
||||||
test/compiletest.stage$(2)$$(X): $$(COMPILETEST_CRATE) \
|
test/compiletest.stage$(2)$$(X): $$(COMPILETEST_CRATE) \
|
||||||
$$(COMPILETEST_INPUTS) \
|
$$(COMPILETEST_INPUTS) \
|
||||||
$$(SREQ$(2)$(CFG_HOST_TRIPLE))
|
$$(SREQ$(2)$$(CFG_HOST_TRIPLE))
|
||||||
@$$(call E, compile_and_link: $$@)
|
@$$(call E, compile_and_link: $$@)
|
||||||
$$(STAGE$(2)) -o $$@ $$<
|
$$(STAGE$(2)) -o $$@ $$<
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue