File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
rust-lld-by-default-stable
rust-lld-x86_64-unknown-linux-gnu-dist
rust-lld-x86_64-unknown-linux-gnu Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ // Ensure that rust-lld is *not* used as the default linker on `x86_64-unknown-linux-gnu` on stable.
2+
3+ //@ only-stable
4+ //@ only-x86_64-unknown-linux-gnu
5+
6+ use run_make_support:: linker:: assert_rustc_doesnt_use_lld;
7+ use run_make_support:: rustc;
8+
9+ fn main ( ) {
10+ // A regular compilation should not use rust-lld by default. We'll check that by asking the
11+ // linker to display its version number with a link-arg.
12+ assert_rustc_doesnt_use_lld ( rustc ( ) . input ( "main.rs" ) ) ;
13+ }
Original file line number Diff line number Diff line change 1- // Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu`
2- // dist artifacts and that it can also be turned off with a CLI flag.
1+ // Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu` dist artifacts
2+ // (except on stable) and that it can also be turned off with a CLI flag.
33
44//@ only-dist
5+ //@ ignore-stable
56//@ only-x86_64-unknown-linux-gnu
67
78use run_make_support:: linker:: { assert_rustc_doesnt_use_lld, assert_rustc_uses_lld} ;
Original file line number Diff line number Diff line change 1- // Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu`
2- // and that it can also be turned off with a CLI flag.
1+ // Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu` (except on
2+ // stable) and that it can also be turned off with a CLI flag.
33//
44// This version of the test checks that LLD is used by default when LLD is enabled in the
55// toolchain. There is a separate test that checks that LLD is used for dist artifacts
66// unconditionally.
77
88//@ needs-rust-lld
9+ //@ ignore-stable
910//@ only-x86_64-unknown-linux-gnu
1011
1112use run_make_support:: linker:: { assert_rustc_doesnt_use_lld, assert_rustc_uses_lld} ;
You can’t perform that action at this time.
0 commit comments