Skip to content

Commit

Permalink
Migrate run-make/prefer-rlib to rmake.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 12, 2024
1 parent 76c7382 commit 6483320
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ run-make/pgo-gen/Makefile
run-make/pgo-indirect-call-promotion/Makefile
run-make/pgo-use/Makefile
run-make/pointer-auth-link-with-c/Makefile
run-make/prefer-rlib/Makefile
run-make/pretty-print-to-file/Makefile
run-make/pretty-print-with-dep-file/Makefile
run-make/print-calling-conventions/Makefile
Expand Down
9 changes: 0 additions & 9 deletions tests/run-make/prefer-rlib/Makefile

This file was deleted.

12 changes: 12 additions & 0 deletions tests/run-make/prefer-rlib/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//@ ignore-cross-compile

use run_make_support::{path, run, rust_lib_name, rustc};
use std::fs::remove_file;

fn main() {
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").run();
assert!(path(rust_lib_name("bar")).exists());
rustc().input("foo.rs").run();
remove_file(rust_lib_name("bar")).unwrap();
run("foo");
}

0 comments on commit 6483320

Please sign in to comment.