File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed
tests/run-make/lto-no-link-whole-rlib Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ run-make/long-linker-command-lines-cmd-exe/Makefile
6565run-make/long-linker-command-lines/Makefile
6666run-make/longjmp-across-rust/Makefile
6767run-make/lto-linkage-used-attr/Makefile
68- run-make/lto-no-link-whole-rlib/Makefile
6968run-make/lto-smoke-c/Makefile
7069run-make/macos-deployment-target/Makefile
7170run-make/macos-fat-archive/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // In order to improve linking performance, entire rlibs will only be linked if a dylib is being
2+ // created. Otherwise, an executable will only link one rlib as usual. Linking will fail in this
3+ // test should this optimization be reverted.
4+ // See https://github.com/rust-lang/rust/pull/31460
5+
6+ //@ ignore-cross-compile
7+ // Reason: the compiled binary is executed
8+
9+ use run_make_support:: { build_native_static_lib, run, rustc} ;
10+
11+ fn main ( ) {
12+ build_native_static_lib ( "foo" ) ;
13+ build_native_static_lib ( "bar" ) ;
14+ rustc ( ) . input ( "lib1.rs" ) . run ( ) ;
15+ rustc ( ) . input ( "lib2.rs" ) . run ( ) ;
16+ rustc ( ) . input ( "main.rs" ) . arg ( "-Clto" ) . run ( ) ;
17+ run ( "main" ) ;
18+ }
You can’t perform that action at this time.
0 commit comments