about summary refs log tree commit diff
path: root/tests/run-make
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-16 11:46:02 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-06-16 11:46:02 +0200
commitac751b3049ac6b7d080eae796acb215c5eb36df3 (patch)
tree676cbd95c3815e4c3d15e88f8d2427fd0359ddd3 /tests/run-make
parent8217b412a235407243f2516ebc859e7b3af8345a (diff)
downloadrust-ac751b3049ac6b7d080eae796acb215c5eb36df3.tar.gz
rust-ac751b3049ac6b7d080eae796acb215c5eb36df3.zip
Migrate `run-make/duplicate-output-flavors` to `rmake.rs`
Diffstat (limited to 'tests/run-make')
-rw-r--r--tests/run-make/duplicate-output-flavors/Makefile5
-rw-r--r--tests/run-make/duplicate-output-flavors/rmake.rs6
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/run-make/duplicate-output-flavors/Makefile b/tests/run-make/duplicate-output-flavors/Makefile
deleted file mode 100644
index e33279966c9..00000000000
--- a/tests/run-make/duplicate-output-flavors/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-include ../tools.mk
-
-all:
-	$(RUSTC) --crate-type=rlib foo.rs
-	$(RUSTC) --crate-type=rlib,rlib foo.rs
diff --git a/tests/run-make/duplicate-output-flavors/rmake.rs b/tests/run-make/duplicate-output-flavors/rmake.rs
new file mode 100644
index 00000000000..09545228807
--- /dev/null
+++ b/tests/run-make/duplicate-output-flavors/rmake.rs
@@ -0,0 +1,6 @@
+use run_make_support::rustc;
+
+fn main() {
+    rustc().input("foo.rs").crate_type("rlib").run();
+    rustc().input("foo.rs").crate_type("rlib,rlib").run();
+}