mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Migrate run-make/multiple-emits
to rmake.rs
This commit is contained in:
parent
f8e25a687e
commit
e8b04cc95f
@ -145,7 +145,6 @@ run-make/mismatching-target-triples/Makefile
|
||||
run-make/missing-crate-dependency/Makefile
|
||||
run-make/mixing-libs/Makefile
|
||||
run-make/msvc-opt-minsize/Makefile
|
||||
run-make/multiple-emits/Makefile
|
||||
run-make/native-link-modifier-bundle/Makefile
|
||||
run-make/native-link-modifier-verbatim-linker/Makefile
|
||||
run-make/native-link-modifier-verbatim-rustc/Makefile
|
||||
|
@ -1,7 +0,0 @@
|
||||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs --emit=asm,llvm-ir -o $(TMPDIR)/out 2>&1
|
||||
rm $(TMPDIR)/out.ll $(TMPDIR)/out.s
|
||||
$(RUSTC) foo.rs --emit=asm,llvm-ir -o $(TMPDIR)/out2.ext 2>&1
|
||||
rm $(TMPDIR)/out2.ll $(TMPDIR)/out2.s
|
13
tests/run-make/multiple-emits/rmake.rs
Normal file
13
tests/run-make/multiple-emits/rmake.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use run_make_support::{cwd, path, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("foo.rs").emit("asm,llvm-ir").output("out").run();
|
||||
|
||||
assert!(path("out.ll").is_file());
|
||||
assert!(path("out.s").is_file());
|
||||
|
||||
rustc().input("foo.rs").emit("asm,llvm-ir").output("out2.ext").run();
|
||||
|
||||
assert!(path("out2.ll").is_file());
|
||||
assert!(path("out2.s").is_file());
|
||||
}
|
Loading…
Reference in New Issue
Block a user