File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1789,18 +1789,21 @@ fn output_separate_lines_new() {
17891789 fn main() {
17901790 println!("cargo:rustc-link-search=foo");
17911791 println!("cargo:rustc-link-lib=static=foo");
1792+ println!("cargo:rustc-link-lib=bar");
1793+ println!("cargo:rustc-link-search=bar");
17921794 }
17931795 "# ,
17941796 )
17951797 . build ( ) ;
1798+ // The order of the arguments passed to rustc is important.
17961799 p. cargo ( "build -v" )
17971800 . with_status ( 101 )
17981801 . with_stderr_contains (
17991802 "\
18001803 [COMPILING] foo v0.5.0 ([CWD])
18011804[RUNNING] `rustc [..] build.rs [..]`
18021805[RUNNING] `[..]/foo-[..]/build-script-build`
1803- [RUNNING] `rustc --crate-name foo [..] -L foo -l static=foo`
1806+ [RUNNING] `rustc --crate-name foo [..] -L foo -L bar - l static=foo -l bar `
18041807[ERROR] could not find native static library [..]
18051808" ,
18061809 )
You can’t perform that action at this time.
0 commit comments