File tree 7 files changed +32
-22
lines changed
rust-lld-by-default-beta-stable
rust-lld-x86_64-unknown-linux-gnu
rust-lld-x86_64-unknown-linux-gnu-dist
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}"
104
104
"tests/incremental" ,
105
105
"tests/mir-opt" ,
106
106
"tests/pretty" ,
107
+ // Make sure that we don't use too new GLIBC symbols on x64
107
108
"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" ,
108
111
"tests/ui" ,
109
112
"tests/crashes" ,
110
113
] ;
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.
3
3
4
- //@ needs-rust-lld
5
- //@ ignore-beta
6
- //@ ignore-stable
4
+ //@ only-dist
7
5
//@ only-x86_64-unknown-linux-gnu
8
6
9
7
use run_make_support:: linker:: { assert_rustc_doesnt_use_lld, assert_rustc_uses_lld} ;
10
8
use run_make_support:: rustc;
11
9
12
10
fn 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.
15
12
assert_rustc_uses_lld ( rustc ( ) . input ( "main.rs" ) ) ;
16
13
17
14
// 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