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 +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 @@ -52,7 +52,6 @@ run-make/linkage-attr-on-static/Makefile
52
52
run-make/long-linker-command-lines-cmd-exe/Makefile
53
53
run-make/long-linker-command-lines/Makefile
54
54
run-make/lto-linkage-used-attr/Makefile
55
- run-make/lto-no-link-whole-rlib/Makefile
56
55
run-make/macos-deployment-target/Makefile
57
56
run-make/min-global-align/Makefile
58
57
run-make/native-link-modifier-bundle/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