Skip to content

Commit

Permalink
make tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed May 12, 2024
1 parent f2de5fb commit a1b5ea0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/run-make/issue-14500/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ use run_make_support::{cc, extra_c_flags, run, rustc};

fn main() {
let libbar_path = tmp_dir().join("libbar.a");
rustc().input("foo.rs")
.crate_type("rlib")
.run();
rustc().input("bar.rs")
rustc().input("foo.rs").crate_type("rlib").run();
rustc()
.input("bar.rs")
.static_lib("staticlib")
.codegen_option("lto")
.library_search_path(".")
.output(&libbar_path)
.run();
cc().input("foo.c")
.input(libbar_path)
.args(&extra_c_flags())
.out_exe("foo")
.run();
cc().input("foo.c").input(libbar_path).args(&extra_c_flags()).out_exe("foo").run();
run("foo");
}

0 comments on commit a1b5ea0

Please sign in to comment.