Skip to content

Commit 2217014

Browse files
committed
Apply some suggestions to the test rmake file
1 parent db68a19 commit 2217014

File tree

1 file changed

+3
-8
lines changed
  • tests/run-make/staticlib-thin-archive

1 file changed

+3
-8
lines changed

tests/run-make/staticlib-thin-archive/rmake.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,16 @@
33
// archive support rustc would add emit object files to the staticlib and after
44
// the object crate added thin archive support it would previously crash the
55
// compiler due to a missing special case for thin archive members.
6-
use std::path::Path;
7-
8-
use run_make_support::{llvm_ar, rust_lib_name, rustc, static_lib_name};
6+
use run_make_support::{llvm_ar, path, rfs, rust_lib_name, rustc, static_lib_name};
97

108
fn main() {
11-
std::fs::create_dir("archive").unwrap();
9+
rfs::create_dir("archive");
1210

1311
// Build a thin archive
1412
rustc().input("simple_obj.rs").emit("obj").output("archive/simple_obj.o").run();
1513
llvm_ar()
1614
.obj_to_thin_ar()
17-
.output_input(
18-
Path::new("archive").join(static_lib_name("thin_archive")),
19-
"archive/simple_obj.o",
20-
)
15+
.output_input(path("archive").join(static_lib_name("thin_archive")), "archive/simple_obj.o")
2116
.run();
2217

2318
// Build an rlib which includes the members of this thin archive

0 commit comments

Comments
 (0)