mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
fix function call and import
This commit is contained in:
parent
a1b5ea0cc2
commit
71fd2cf5b4
1 changed files with 2 additions and 2 deletions
|
@ -9,14 +9,14 @@
|
|||
|
||||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{cc, extra_c_flags, run, rustc};
|
||||
use run_make_support::{cc, extra_c_flags, run, rustc, tmp_dir};
|
||||
|
||||
fn main() {
|
||||
let libbar_path = tmp_dir().join("libbar.a");
|
||||
rustc().input("foo.rs").crate_type("rlib").run();
|
||||
rustc()
|
||||
.input("bar.rs")
|
||||
.static_lib("staticlib")
|
||||
.crate_type("staticlib")
|
||||
.codegen_option("lto")
|
||||
.library_search_path(".")
|
||||
.output(&libbar_path)
|
||||
|
|
Loading…
Reference in a new issue