move tools.mk to run-make

apparently I missed some tests in the last commit. Rather than having
dozens of tests use the long version, use the short version in
`run-make` and the long version in `run-make-fulldeps` (which is now
only three tests)
This commit is contained in:
Joshua Nelson 2023-03-30 07:58:50 -05:00
parent 06b2d4b4ab
commit 26e1ce7394
89 changed files with 88 additions and 88 deletions

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
# without causing a panic.

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
# together with the borrow checker information.

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-cross-compile

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Check that valid binaries are persisted by running them, regardless of whether the --run or --no-run option is used.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type lib foo.rs -Z dump-mono-stats=$(TMPDIR) -Zdump-mono-stats-format=json

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUT=$(TMPDIR)/emit

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUT=$(TMPDIR)/emit

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
INVOCATION_ONLY = $(TMPDIR)/invocation-only
TOOLCHAIN_ONLY = $(TMPDIR)/toolchain-only

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
# instead of hardcoding them everywhere they're needed.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-wasm32
# ignore-wasm64

View File

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

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-none no-std is not supported
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for 'std'

View File

@ -1,7 +1,7 @@
# ignore-none no-std is not supported
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Tests that we don't ICE during incremental compilation after modifying a
# function span such that its previous end line exceeds the number of lines

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
SESSION_DIR := $(TMPDIR)/session
OUTPUT_FILE := $(TMPDIR)/build-output

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
DYLIB_NAME := $(shell echo | $(RUSTC) --crate-name foo --crate-type dylib --print file-names -)

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Regression test for issue #10971
# Running two invocations in parallel would overwrite each other's temp files.

View File

@ -6,7 +6,7 @@
# (see dist-i586-gnu-i586-i686-musl Dockerfile)
# ignore-sgx
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all: foo
$(call RUN,foo)

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-linux
# ignore-cross-compile

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-msvc
# needs-rust-lld

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# This test case creates a situation where the crate loader would run
# into an ICE when confronted with an invalid setup where it cannot

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-none no-std is not supported
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for 'std'

View File

@ -3,7 +3,7 @@
# This test makes sure the embed bitcode in elf created with
# lto-embed-bitcode=optimized is valid llvm BC module.
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) test.rs --target $(TARGET) -Clink-arg=-fuse-ld=lld -Clinker-plugin-lto -Clinker=$(CLANG) -Clink-arg=-Wl,--plugin-opt=-lto-embed-bitcode=optimized -Zemit-thin-lto=no

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
INCR=$(TMPDIR)/incr
FIRST_SRC=$(TMPDIR)/first_src

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Regression test for issue #85401
# Verify that we do not ICE when trying to access MIR for statics,

View File

@ -1,6 +1,6 @@
# only-windows-msvc
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Tests that WS2_32.dll is not unnecessarily linked, see issue #85441

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(BARE_RUSTDOC) 2>&1 | sed -E 's@/nightly/|/beta/|/stable/|/1\.[0-9]+\.[0-9]+/@/$$CHANNEL/@g' | diff - output-default.stdout

View File

@ -1,7 +1,7 @@
# only-windows
# needs-rust-lld
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Ensure that LLD can link
all:

View File

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

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# Different optimization levels imply different values for `-Zshare-generics`,
# so try out a whole bunch of combinations to make sure everything is compatible

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-linux

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-linux

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
echo 'fn main() {}' | $(BARE_RUSTC) - --out-dir=$(TMPDIR)/random_directory_that_does_not_exist_ir/ --emit=llvm-ir

View File

@ -4,7 +4,7 @@
# This is important since its a compatibility hazard. The linker will
# generate load commands differently based on what minimum OS it can assume.
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
ifeq ($(strip $(shell uname -m)),arm64)
GREP_PATTERN = "minos 11.0"

View File

@ -1,6 +1,6 @@
# only-macos
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
"$(TMPDIR)"/libnative-library.a: native-library.c
$(CC) -arch arm64 -arch x86_64 native-library.c -c -o "$(TMPDIR)"/native-library.o

View File

@ -1,7 +1,7 @@
# ignore-cross-compile
# ignore-windows-msvc
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# We're using the llvm-nm instead of the system nm to ensure it is compatible
# with the LLVM bitcode generated by rustc.

View File

@ -1,7 +1,7 @@
# ignore-cross-compile
# ignore-macos
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
# Verbatim allows specify precise name.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
# Verbatim allows specify precise name.

View File

@ -8,7 +8,7 @@
# that code would never make it into the final executable and we'd thus be missing some
# of the output.
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all: $(TMPDIR)/$(call BIN,directly_linked) \
$(TMPDIR)/$(call BIN,directly_linked_test_plus_whole_archive) \

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --print crate-name 2>&1 | diff - no-input-file.stderr

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) main.rs -o main.rs 2> $(TMPDIR)/file.stderr || echo "failed successfully"

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# NOTE we use --emit=llvm-ir to avoid running the linker (linking will fail because there's no main
# in this crate)

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
# Build deps

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) rs.rs -Z unstable-options -l static=l1 -l link-arg=a1 -l static=l2 -l link-arg=a2 -l dylib=d1 -l link-arg=a3 --print link-args | $(CGREP) -e 'l1.*a1.*l2.*a2.*d1.*a3'

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --print calling-conventions

View File

@ -3,7 +3,7 @@
# only-x86
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type lib --crate-name raw_dylib_alt_calling_convention_test lib.rs

View File

@ -2,7 +2,7 @@
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type lib --crate-name raw_dylib_test lib.rs

View File

@ -7,7 +7,7 @@
# i686 dlltool.exe can't product x64 binaries.
# ignore-i686-pc-windows-gnu
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
# Build as x86 and make sure that we have x86 objects only.

View File

@ -3,7 +3,7 @@
# only-x86
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"

View File

@ -2,7 +2,7 @@
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# We'd be using the llvm-objdump instead of the system objdump to ensure compatibility
# with the LLVM bitcode generated by rustc but on Windows piping/IO redirection under MSYS2 is wonky with llvm-objdump.

View File

@ -2,7 +2,7 @@
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type lib --crate-name raw_dylib_test lib.rs

View File

@ -3,7 +3,7 @@
# only-x86
# only-windows
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --crate-type lib --crate-name raw_dylib_test lib.rs

View File

@ -6,7 +6,7 @@
SRC_DIR := $(abspath .)
SRC_DIR_PARENT := $(abspath ..)
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all: \
abs_input_outside_working_dir \

View File

@ -2,7 +2,7 @@
# This test should be replaced with one in tests/debuginfo once GDB or LLDB support 128-bit
# enums.
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) -Cdebuginfo=2 lib.rs -o $(TMPDIR)/repr128.rlib

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-cross-compile

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-cross-compile
# only-linux

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-cross-compile

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
# instead of hardcoding them everywhere they're needed.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUTPUT_DIR := "$(TMPDIR)/rustdoc"

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
TMP_OUTPUT_DIR := "$(TMPDIR)/tmp-rustdoc"

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUTPUT_DIR := "$(TMPDIR)/rustdoc"

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUTPUT_DIR := "$(TMPDIR)/rustdoc"

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
OUTPUT_DIR := "$(TMPDIR)/rustdoc"

View File

@ -9,7 +9,7 @@
#
# This is regression test for https://github.com/rust-lang/rust/issues/67276.
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
COMMON_ARGS=-Cprefer-dynamic -Zshare-generics=yes -Ccodegen-units=1 -Csymbol-mangling-version=v0

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-x86_64
# only-linux

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# ignore-cross-compile

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# How to run this
# $ ./x.py clean

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-thumb

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
# instead of hardcoding them everywhere they're needed.

View File

@ -1,7 +1,7 @@
# needs-profiler-support
# ignore-windows-gnu
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
# instead of hardcoding them everywhere they're needed.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# This test uses `ln -s` rather than copying to save testing time, but its
# usage doesn't work on Windows.

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTDOC) --output-format=json x.html 2>&1 | diff - output-format-json.stderr

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
all:
$(RUSTC) --print uwu 2>&1 | diff - valid-print-requests.stderr

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
ifeq ($(TARGET),wasm32-unknown-unknown)
all:

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
# only-wasm32-bare

View File

@ -1,4 +1,4 @@
include ../../run-make-fulldeps/tools.mk
include ../tools.mk
#only-x86_64-fortanix-unknown-sgx