File tree 3 files changed +19
-16
lines changed
tests/run-make/interdependent-c-libraries
3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ run-make/foreign-exceptions/Makefile
21
21
run-make/foreign-rust-exceptions/Makefile
22
22
run-make/incr-add-rust-src-component/Makefile
23
23
run-make/incr-foreign-head-span/Makefile
24
- run-make/interdependent-c-libraries/Makefile
25
24
run-make/issue-35164/Makefile
26
25
run-make/issue-36710/Makefile
27
26
run-make/issue-47551/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // The rust crate foo will link to the native library foo, while the rust crate
2
+ // bar will link to the native library bar. There is also a dependency between
3
+ // the native library bar to the natibe library foo.
4
+ // This test ensures that the ordering of -lfoo and -lbar on the command line is
5
+ // correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo'
6
+ // library will be stripped out, and the linkage will fail.
7
+ // See https://github.com/rust-lang/rust/commit/e6072fa0c4c22d62acf3dcb78c8ee260a1368bd7
8
+
9
+ // FIXME(Oneirical): test-various
10
+
11
+ use run_make_support:: { build_native_static_lib, rustc} ;
12
+
13
+ fn main ( ) {
14
+ build_native_static_lib ( "foo" ) ;
15
+ build_native_static_lib ( "bar" ) ;
16
+ rustc ( ) . input ( "foo.rs" ) . run ( ) ;
17
+ rustc ( ) . input ( "bar.rs" ) . run ( ) ;
18
+ rustc ( ) . input ( "main.rs" ) . print ( "link-args" ) . run ( ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments