1
Fork 0

make tidy happy

This commit is contained in:
Oneirical 2024-05-12 14:13:02 -04:00
parent f2de5fb2ae
commit a1b5ea0cc2

View file

@ -13,19 +13,14 @@ use run_make_support::{cc, extra_c_flags, run, rustc};
fn main() { fn main() {
let libbar_path = tmp_dir().join("libbar.a"); let libbar_path = tmp_dir().join("libbar.a");
rustc().input("foo.rs") rustc().input("foo.rs").crate_type("rlib").run();
.crate_type("rlib") rustc()
.run(); .input("bar.rs")
rustc().input("bar.rs")
.static_lib("staticlib") .static_lib("staticlib")
.codegen_option("lto") .codegen_option("lto")
.library_search_path(".") .library_search_path(".")
.output(&libbar_path) .output(&libbar_path)
.run(); .run();
cc().input("foo.c") cc().input("foo.c").input(libbar_path).args(&extra_c_flags()).out_exe("foo").run();
.input(libbar_path)
.args(&extra_c_flags())
.out_exe("foo")
.run();
run("foo"); run("foo");
} }