make tidy happy
This commit is contained in:
parent
f2de5fb2ae
commit
a1b5ea0cc2
1 changed files with 4 additions and 9 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue