Auto merge of #109770 - jyn514:run-make-fulldeps, r=Mark-Simulacrum

Move almost all run-make-fulldeps tests to run-make

They pass fine, and this avoids having to build the compiler twice.

There are few enough tests left that I think it should be possible to get rid of this test suite altogether, but I expect this PR to fail at least a few times in bors and want to get it merged before tackling further changes. cc https://github.com/rust-lang/rust/pull/83775

Fixes https://github.com/rust-lang/rust/issues/66085. Fixes https://github.com/rust-lang/rust/issues/83773.
This commit is contained in:
bors 2023-04-03 01:34:05 +00:00
commit 33289132ec
774 changed files with 226 additions and 95 deletions

View File

@ -1,4 +1,4 @@
include ../tools.mk include ../../run-make/tools.mk
# ignore-stage1 # ignore-stage1

View File

@ -1,4 +1,4 @@
include ../tools.mk include ../../run-make/tools.mk
# This test ensures that rustc compile_input can be called twice in one task # This test ensures that rustc compile_input can be called twice in one task
# without causing a panic. # without causing a panic.

View File

@ -1,5 +0,0 @@
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs
$(call RUN,test) || exit 1

View File

@ -1,4 +1,4 @@
include ../tools.mk include ../../run-make/tools.mk
# This example shows how to implement a rustc driver that retrieves MIR bodies # This example shows how to implement a rustc driver that retrieves MIR bodies
# together with the borrow checker information. # together with the borrow checker information.

View File

@ -1,4 +1,4 @@
include ../tools.mk include ../../run-make/tools.mk
all: all:
$(RUSTC) -o $(TMPDIR)/input.expanded.rs -Zunpretty=expanded input.rs $(RUSTC) -o $(TMPDIR)/input.expanded.rs -Zunpretty=expanded input.rs

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# Test that if we build `b` against a version of `a` that has one set # Test that if we build `b` against a version of `a` that has one set

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# Test that -A warnings makes the 'empty trait list for derive' warning go away # Test that -A warnings makes the 'empty trait list for derive' warning go away

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# Test that -A warnings makes the 'empty trait list for derive' warning go away # Test that -A warnings makes the 'empty trait list for derive' warning go away

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# ignore-macos # ignore-macos

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# ignore-macos # ignore-macos

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: $(TMPDIR)/$(call BIN,bar) all: $(TMPDIR)/$(call BIN,bar)

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
# ignore-freebsd # ignore-freebsd

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: $(call NATIVE_STATICLIB,cfoo) all: $(call NATIVE_STATICLIB,cfoo)

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: $(call NATIVE_STATICLIB,cfoo) all: $(call NATIVE_STATICLIB,cfoo)

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: archive all: archive

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: $(call NATIVE_STATICLIB,add) all: $(call NATIVE_STATICLIB,add)

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
TARGET_SYSROOT := $(shell $(RUSTC) --print sysroot)/lib/rustlib/$(TARGET)/lib TARGET_SYSROOT := $(shell $(RUSTC) --print sysroot)/lib/rustlib/$(TARGET)/lib

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
# Test that allocator-related symbols don't show up as exported from a cdylib as # Test that allocator-related symbols don't show up as exported from a cdylib as
# they're internal to Rust and not part of the public ABI. # they're internal to Rust and not part of the public ABI.

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: $(call RUN_BINFILE,foo) all: $(call RUN_BINFILE,foo)

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,3 +1,4 @@
# ignore-cross-compile
include ../tools.mk include ../tools.mk
all: all:

View File

@ -1,5 +1,8 @@
include ../tools.mk include ../tools.mk
# ignore-wasm32 (need a C compiler)
# ignore-wasm64 (need a C compiler)
all: $(TMPDIR)/libnative.a all: $(TMPDIR)/libnative.a
mkdir -p $(TMPDIR)/crate mkdir -p $(TMPDIR)/crate
mkdir -p $(TMPDIR)/native mkdir -p $(TMPDIR)/native

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk include ../tools.mk
all: all:
$(RUSTC) main.rs --emit=mir -o "$(TMPDIR)"/dump.mir $(RUSTC) main.rs --emit=mir -o "$(TMPDIR)"/dump.mir

View File

@ -3,4 +3,4 @@
# #
# include ../coverage/coverage_tools.mk # include ../coverage/coverage_tools.mk
include ../../run-make-fulldeps/tools.mk include ../tools.mk

View File

@ -1,4 +1,5 @@
include ../../run-make-fulldeps/tools.mk # ignore-cross-compile
include ../tools.mk
# Ensure that crates compiled with different rustc versions cannot # Ensure that crates compiled with different rustc versions cannot
# be dynamically linked. # be dynamically linked.

Some files were not shown because too many files have changed in this diff Show More