File tree 1 file changed +4
-1
lines changed 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() {
1789
1789
fn main() {
1790
1790
println!("cargo:rustc-link-search=foo");
1791
1791
println!("cargo:rustc-link-lib=static=foo");
1792
+ println!("cargo:rustc-link-lib=bar");
1793
+ println!("cargo:rustc-link-search=bar");
1792
1794
}
1793
1795
"# ,
1794
1796
)
1795
1797
. build ( ) ;
1798
+ // The order of the arguments passed to rustc is important.
1796
1799
p. cargo ( "build -v" )
1797
1800
. with_status ( 101 )
1798
1801
. with_stderr_contains (
1799
1802
"\
1800
1803
[COMPILING] foo v0.5.0 ([CWD])
1801
1804
[RUNNING] `rustc [..] build.rs [..]`
1802
1805
[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 `
1804
1807
[ERROR] could not find native static library [..]
1805
1808
" ,
1806
1809
)
You can’t perform that action at this time.
0 commit comments