Skip to content

Commit ce507c6

Browse files
Don't forget the tests.
1 parent f17faf4 commit ce507c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mk/tests.mk

+4-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,8 @@ $(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2)): \
412412
$$(CRATEFILE_$(4)) \
413413
$$(TESTDEP_$(1)_$(2)_$(3)_$(4))
414414
@$$(call E, rustc: $$@)
415-
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$< --test \
415+
$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(2)) \
416+
$$(subst @,,$$(STAGE$(1)_T_$(2)_H_$(3))) -o $$@ $$< --test \
416417
-L "$$(RT_OUTPUT_DIR_$(2))" \
417418
-L "$$(LLVM_LIBDIR_$(2))" \
418419
$$(RUSTFLAGS_$(4))
@@ -890,7 +891,8 @@ endif
890891
ifeq ($(2),$$(CFG_BUILD))
891892
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))
892893
@$$(call E, run doc-crate-$(4) [$(2)])
893-
$$(Q)$$(RUSTDOC_$(1)_T_$(2)_H_$(3)) --test --cfg dox \
894+
$$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(2)) \
895+
$$(RUSTDOC_$(1)_T_$(2)_H_$(3)) --test --cfg dox \
894896
$$(CRATEFILE_$(4)) --test-args "$$(TESTARGS)" && touch $$@
895897
else
896898
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)):

0 commit comments

Comments
 (0)