File tree Expand file tree Collapse file tree 3 files changed +20
-11
lines changed
tests/run-make/symlinked-rlib Expand file tree Collapse file tree 3 files changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ run-make/symbol-visibility/Makefile
235235run-make/symbols-include-type-name/Makefile
236236run-make/symlinked-extern/Makefile
237237run-make/symlinked-libraries/Makefile
238- run-make/symlinked-rlib/Makefile
239238run-make/sysroot-crates-are-unstable/Makefile
240239run-make/target-cpu-native/Makefile
241240run-make/target-specs/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ //@ ignore-cross-compile
2+ // `ln` is actually `cp` on msys.
3+ //@ ignore-windows
4+
5+ use run_make_support:: { rustc, tmp_dir} ;
6+ use std:: process:: Command ;
7+
8+ fn main ( ) {
9+ let out = tmp_dir ( ) . join ( "foo.xxx" ) ;
10+
11+ rustc ( ) . input ( "foo.rs" ) . crate_type ( "rlib" ) . output ( & out) . run ( ) ;
12+ let output = Command :: new ( "ln" )
13+ . arg ( "-nsf" )
14+ . arg ( out)
15+ . arg ( tmp_dir ( ) . join ( "libfoo.rlib" ) )
16+ . output ( )
17+ . unwrap ( ) ;
18+ assert ! ( output. status. success( ) ) ;
19+ rustc ( ) . input ( "bar.rs" ) . library_search_path ( tmp_dir ( ) ) . run ( ) ;
20+ }
You can’t perform that action at this time.
0 commit comments