This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-16
lines changed
tests/run-make/interdependent-c-libraries Expand file tree Collapse file tree 3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ run-make/foreign-exceptions/Makefile
2626run-make/foreign-rust-exceptions/Makefile
2727run-make/incr-add-rust-src-component/Makefile
2828run-make/incr-foreign-head-span/Makefile
29- run-make/interdependent-c-libraries/Makefile
3029run-make/issue-107094/Makefile
3130run-make/issue-14698/Makefile
3231run-make/issue-15460/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