File tree Expand file tree Collapse file tree 7 files changed +32
-22
lines changed
rust-lld-by-default-beta-stable
rust-lld-x86_64-unknown-linux-gnu-dist
rust-lld-x86_64-unknown-linux-gnu Expand file tree Collapse file tree 7 files changed +32
-22
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,10 @@ llvm-config = "{llvm_config}"
104104 "tests/incremental" ,
105105 "tests/mir-opt" ,
106106 "tests/pretty" ,
107+ // Make sure that we don't use too new GLIBC symbols on x64
107108 "tests/run-make/glibc-symbols-x86_64-unknown-linux-gnu" ,
109+ // Make sure that we use LLD by default on x64
110+ "tests/run-make/rust-lld-x86_64-unknown-linux-gnu-dist" ,
108111 "tests/ui" ,
109112 "tests/crashes" ,
110113 ] ;
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
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` on the nightly
2- // channel, 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`
2+ // dist artifacts and that it can also be turned off with a CLI flag.
33
4- //@ needs-rust-lld
5- //@ ignore-beta
6- //@ ignore-stable
4+ //@ only-dist
75//@ only-x86_64-unknown-linux-gnu
86
97use run_make_support:: linker:: { assert_rustc_doesnt_use_lld, assert_rustc_uses_lld} ;
108use run_make_support:: rustc;
119
1210fn main ( ) {
13- // A regular compilation should use rust-lld by default. We'll check that by asking the linker
14- // to display its version number with a link-arg.
11+ // A regular compilation should use rust-lld by default.
1512 assert_rustc_uses_lld ( rustc ( ) . input ( "main.rs" ) ) ;
1613
1714 // But it can still be disabled by turning the linker feature off.
Original file line number Diff line number Diff line change 1+ // Test linking using `cc` with `rust-lld`, which is on by default on the x86_64-unknown-linux-gnu
2+ // target.
3+ // See https://github.com/rust-lang/compiler-team/issues/510 for more info
4+
5+ fn main ( ) { }
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.
3+ //
4+ // This version of the test checks that LLD is used by default when LLD is enabled in the
5+ // toolchain. There is a separate test that checks that LLD is used for dist artifacts
6+ // unconditionally.
7+
8+ //@ needs-rust-lld
9+ //@ only-x86_64-unknown-linux-gnu
10+
11+ use run_make_support:: linker:: { assert_rustc_doesnt_use_lld, assert_rustc_uses_lld} ;
12+ use run_make_support:: rustc;
13+
14+ fn main ( ) {
15+ // A regular compilation should use rust-lld by default.
16+ assert_rustc_uses_lld ( rustc ( ) . input ( "main.rs" ) ) ;
17+
18+ // But it can still be disabled by turning the linker feature off.
19+ assert_rustc_doesnt_use_lld ( rustc ( ) . arg ( "-Zlinker-features=-lld" ) . input ( "main.rs" ) ) ;
20+ }
You can’t perform that action at this time.
0 commit comments