Migrate run-make/manual-crate-name to rmake.rs

This commit is contained in:
Guillaume Gomez 2024-06-06 10:19:15 +02:00
parent a330e49593
commit 7ad5ebc75c
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -1,5 +0,0 @@
include ../tools.mk
all:
$(RUSTC) --crate-name foo bar.rs
rm $(TMPDIR)/libfoo.rlib

View File

@ -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());
}