about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-06 10:19:15 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-06 10:19:15 +0200
commit7ad5ebc75c44b271e3a14cbe3a138e38d0bd39d3 (patch)
tree7ee1b6c81196e54a2d59eb87d0b7501fe264a695
parenta330e49593ee890f9197727a3a558b6e6b37f843 (diff)
downloadrust-7ad5ebc75c44b271e3a14cbe3a138e38d0bd39d3.tar.gz
rust-7ad5ebc75c44b271e3a14cbe3a138e38d0bd39d3.zip
Migrate `run-make/manual-crate-name` to `rmake.rs`
-rw-r--r--src/tools/tidy/src/allowed_run_make_makefiles.txt1
-rw-r--r--tests/run-make/manual-crate-name/Makefile5
-rw-r--r--tests/run-make/manual-crate-name/rmake.rs6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/tidy/src/allowed_run_make_makefiles.txt b/src/tools/tidy/src/allowed_run_make_makefiles.txt
index 600ca06fcdf..51f0e99e5d0 100644
--- a/src/tools/tidy/src/allowed_run_make_makefiles.txt
+++ b/src/tools/tidy/src/allowed_run_make_makefiles.txt
@@ -136,7 +136,6 @@ run-make/lto-readonly-lib/Makefile
 run-make/lto-smoke-c/Makefile
 run-make/macos-deployment-target/Makefile
 run-make/macos-fat-archive/Makefile
-run-make/manual-crate-name/Makefile
 run-make/manual-link/Makefile
 run-make/many-crates-but-no-match/Makefile
 run-make/metadata-dep-info/Makefile
diff --git a/tests/run-make/manual-crate-name/Makefile b/tests/run-make/manual-crate-name/Makefile
deleted file mode 100644
index c00e20c7c57..00000000000
--- a/tests/run-make/manual-crate-name/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-include ../tools.mk
-
-all:
-	$(RUSTC) --crate-name foo bar.rs
-	rm $(TMPDIR)/libfoo.rlib
diff --git a/tests/run-make/manual-crate-name/rmake.rs b/tests/run-make/manual-crate-name/rmake.rs
new file mode 100644
index 00000000000..531f531abd2
--- /dev/null
+++ b/tests/run-make/manual-crate-name/rmake.rs
@@ -0,0 +1,6 @@
+use run_make_support::{rustc, tmp_dir};
+
+fn main() {
+    rustc().input("bar.rs").crate_name("foo").run();
+    assert!(tmp_dir().join("libfoo.rlib").is_file());
+}