Skip to content

Commit 6483320

Browse files
Migrate run-make/prefer-rlib to rmake.rs
1 parent 76c7382 commit 6483320

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ run-make/pgo-gen/Makefile
175175
run-make/pgo-indirect-call-promotion/Makefile
176176
run-make/pgo-use/Makefile
177177
run-make/pointer-auth-link-with-c/Makefile
178-
run-make/prefer-rlib/Makefile
179178
run-make/pretty-print-to-file/Makefile
180179
run-make/pretty-print-with-dep-file/Makefile
181180
run-make/print-calling-conventions/Makefile

tests/run-make/prefer-rlib/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/run-make/prefer-rlib/rmake.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//@ ignore-cross-compile
2+
3+
use run_make_support::{path, run, rust_lib_name, rustc};
4+
use std::fs::remove_file;
5+
6+
fn main() {
7+
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();
8+
assert!(path(rust_lib_name("bar")).exists());
9+
rustc().input("foo.rs").run();
10+
remove_file(rust_lib_name("bar")).unwrap();
11+
run("foo");
12+
}

0 commit comments

Comments
 (0)