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 +17
-14
lines changed Expand file tree Collapse file tree 3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ run-make/long-linker-command-lines-cmd-exe/Makefile
9797run-make/long-linker-command-lines/Makefile
9898run-make/longjmp-across-rust/Makefile
9999run-make/lto-dylib-dep/Makefile
100- run-make/lto-empty/Makefile
101100run-make/lto-linkage-used-attr/Makefile
102101run-make/lto-no-link-whole-rlib/Makefile
103102run-make/lto-smoke-c/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // Compiling Rust code twice in a row with "fat" link-time-optimizations used to cause
2+ // an internal compiler error (ICE). This was due to how the compiler would cache some modules
3+ // to make subsequent compilations faster, at least one of which was required for LTO to link
4+ // into. After this was patched in #63956, this test checks that the bug does not make
5+ // a resurgence.
6+ // See https://github.com/rust-lang/rust/issues/63349
7+
8+ //@ ignore-cross-compile
9+
10+ use run_make_support:: rustc;
11+
12+ fn main ( ) {
13+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=fat" ) . opt_level ( "3" ) . incremental ( "inc-fat" ) . run ( ) ;
14+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=fat" ) . opt_level ( "3" ) . incremental ( "inc-fat" ) . run ( ) ;
15+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=thin" ) . opt_level ( "3" ) . incremental ( "inc-thin" ) . run ( ) ;
16+ rustc ( ) . input ( "lib.rs" ) . arg ( "-Clto=thin" ) . opt_level ( "3" ) . incremental ( "inc-thin" ) . run ( ) ;
17+ }
You can’t perform that action at this time.
0 commit comments