-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Use lld by default on x86_64-unknown-linux-gnu
stable
#140525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+353
−176
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a4ea949
use LLD by default on x64 regardless of channel
lqd aa52711
add post-dist test for checking that we use LLD
lqd 2e6d82c
stabilize `-Clinker-features=-lld` on x64 linux
lqd 3f194a8
stabilize `-Clink-self-contained=-linker` on x64 linux
lqd d617902
update bootstrap mcp510 handling
lqd 856c662
expand `-Clinker-features` tests
lqd e32b1d7
expand `-Clink-self-contained` tests
lqd 889638a
document new stable flags, with x64 linux implementation notes
lqd 5059315
remove `-znostart-stop-gc` workaround
lqd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
petrochenkov marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
src/doc/unstable-book/src/compiler-flags/linker-features.md
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
13 changes: 5 additions & 8 deletions
13
...make/rust-lld-by-default-nightly/rmake.rs → ...ld-x86_64-unknown-linux-gnu-dist/rmake.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
// Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu` on the nightly | ||
// channel, and that it can also be turned off with a CLI flag. | ||
// Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu` | ||
// dist artifacts and that it can also be turned off with a CLI flag. | ||
|
||
//@ needs-rust-lld | ||
//@ ignore-beta | ||
//@ ignore-stable | ||
//@ only-dist | ||
//@ only-x86_64-unknown-linux-gnu | ||
|
||
use run_make_support::linker::{assert_rustc_doesnt_use_lld, assert_rustc_uses_lld}; | ||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
// A regular compilation should use rust-lld by default. We'll check that by asking the linker | ||
// to display its version number with a link-arg. | ||
// A regular compilation should use rust-lld by default. | ||
assert_rustc_uses_lld(rustc().input("main.rs")); | ||
|
||
// But it can still be disabled by turning the linker feature off. | ||
assert_rustc_doesnt_use_lld(rustc().arg("-Zlinker-features=-lld").input("main.rs")); | ||
assert_rustc_doesnt_use_lld(rustc().arg("-Clinker-features=-lld").input("main.rs")); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Test linking using `cc` with `rust-lld`, which is on by default on the x86_64-unknown-linux-gnu | ||
// target. | ||
// See https://github.com/rust-lang/compiler-team/issues/510 for more info | ||
|
||
fn main() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Ensure that rust-lld is used as the default linker on `x86_64-unknown-linux-gnu` | ||
// and that it can also be turned off with a CLI flag. | ||
// | ||
// This version of the test checks that LLD is used by default when LLD is enabled in the | ||
// toolchain. There is a separate test that checks that LLD is used for dist artifacts | ||
// unconditionally. | ||
|
||
//@ needs-rust-lld | ||
//@ only-x86_64-unknown-linux-gnu | ||
|
||
use run_make_support::linker::{assert_rustc_doesnt_use_lld, assert_rustc_uses_lld}; | ||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
// A regular compilation should use rust-lld by default. | ||
assert_rustc_uses_lld(rustc().input("main.rs")); | ||
|
||
// But it can still be disabled by turning the linker feature off. | ||
assert_rustc_doesnt_use_lld(rustc().arg("-Clinker-features=-lld").input("main.rs")); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Check that only `-C link-self-contained=-linker` is stable on x64 linux. Any other value or | ||
// target, needs `-Z unstable-options`. | ||
|
||
// ignore-tidy-linelength | ||
|
||
//@ revisions: unstable_target_positive unstable_target_negative unstable_positive | ||
//@ [unstable_target_negative] compile-flags: --target=x86_64-unknown-linux-musl -C link-self-contained=-linker --crate-type=rlib | ||
//@ [unstable_target_negative] needs-llvm-components: x86 | ||
//@ [unstable_target_positive] compile-flags: --target=x86_64-unknown-linux-musl -C link-self-contained=+linker --crate-type=rlib | ||
//@ [unstable_target_positive] needs-llvm-components: x86 | ||
//@ [unstable_positive] compile-flags: --target=x86_64-unknown-linux-gnu -C link-self-contained=+linker --crate-type=rlib | ||
//@ [unstable_positive] needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
#![no_core] | ||
|
||
//[unstable_target_negative]~? ERROR `-C link-self-contained=-linker` is unstable on the `x86_64-unknown-linux-musl` target | ||
//[unstable_target_positive,unstable_positive]~? ERROR only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable |
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/link-self-contained-linker-disallowed.unstable_positive.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/link-self-contained-linker-disallowed.unstable_target_negative.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: `-C link-self-contained=-linker` is unstable on the `x86_64-unknown-linux-musl` target. The `-Z unstable-options` flag must also be passed to use it on this target | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/link-self-contained-linker-disallowed.unstable_target_positive.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Checks that values for `-Clink-self-contained` other than the blanket enable/disable and | ||
// `-linker` require `-Zunstable-options`. | ||
|
||
//@ revisions: crto libc unwind sanitizers mingw | ||
//@ [crto] compile-flags: -Clink-self-contained=+crto | ||
//@ [libc] compile-flags: -Clink-self-contained=-libc | ||
//@ [unwind] compile-flags: -Clink-self-contained=+unwind | ||
//@ [sanitizers] compile-flags: -Clink-self-contained=-sanitizers | ||
//@ [mingw] compile-flags: -Clink-self-contained=+mingw | ||
|
||
fn main() {} | ||
|
||
//~? ERROR only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable |
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/link-self-contained-unstable.sanitizers.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable, the `-Z unstable-options` flag must also be passed to use the unstable values | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Check that only `-C linker-features=-lld` is stable on x64 linux. Any other value or target, | ||
// needs `-Z unstable-options`. | ||
|
||
// ignore-tidy-linelength | ||
|
||
//@ revisions: unstable_target_positive unstable_target_negative unstable_positive | ||
//@ [unstable_target_negative] compile-flags: --target=x86_64-unknown-linux-musl -C linker-features=-lld --crate-type=rlib | ||
//@ [unstable_target_negative] needs-llvm-components: x86 | ||
//@ [unstable_target_positive] compile-flags: --target=x86_64-unknown-linux-musl -C linker-features=+lld --crate-type=rlib | ||
//@ [unstable_target_positive] needs-llvm-components: x86 | ||
//@ [unstable_positive] compile-flags: --target=x86_64-unknown-linux-gnu -C linker-features=+lld --crate-type=rlib | ||
//@ [unstable_positive] needs-llvm-components: x86 | ||
|
||
|
||
#![feature(no_core)] | ||
#![no_core] | ||
|
||
//[unstable_target_negative]~? ERROR `-C linker-features=-lld` is unstable on the `x86_64-unknown-linux-musl` target | ||
//[unstable_target_positive,unstable_positive]~? ERROR `-C linker-features=+lld` is unstable, and also requires the `-Z unstable-options` |
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/linker-features-lld-disallowed.unstable_positive.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: `-C linker-features=+lld` is unstable, and also requires the `-Z unstable-options` flag to be used | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/linker-features-lld-disallowed.unstable_target_negative.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: `-C linker-features=-lld` is unstable on the `x86_64-unknown-linux-musl` target. The `-Z unstable-options` flag must also be passed to use it on this target | ||
|
2 changes: 2 additions & 0 deletions
2
tests/ui/linking/linker-features-lld-disallowed.unstable_target_positive.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: `-C linker-features=+lld` is unstable, and also requires the `-Z unstable-options` flag to be used | ||
|
2 changes: 1 addition & 1 deletion
2
tests/ui/linking/linker-features-malformed.invalid_modifier.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `*lld` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `*lld` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
2 changes: 1 addition & 1 deletion
2
tests/ui/linking/linker-features-malformed.invalid_separator.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `-lld@+lld` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `-lld@+lld` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
//! Check that malformed `-Zlinker-features` flags are properly rejected. | ||
//! Check that malformed `-Clinker-features` flags are properly rejected. | ||
//@ revisions: no_value | ||
//@[no_value] compile-flags: -Zlinker-features= | ||
//[no_value]~? ERROR incorrect value `` for unstable option `linker-features` | ||
//@[no_value] compile-flags: -Clinker-features= | ||
//[no_value]~? ERROR incorrect value `` for codegen option `linker-features` | ||
|
||
//@ revisions: invalid_modifier | ||
//@[invalid_modifier] compile-flags: -Zlinker-features=*lld | ||
//[invalid_modifier]~? ERROR incorrect value `*lld` for unstable option `linker-features` | ||
//@[invalid_modifier] compile-flags: -Clinker-features=*lld | ||
//[invalid_modifier]~? ERROR incorrect value `*lld` for codegen option `linker-features` | ||
|
||
//@ revisions: unknown_value | ||
//@[unknown_value] compile-flags: -Zlinker-features=unknown | ||
//[unknown_value]~? ERROR incorrect value `unknown` for unstable option `linker-features` | ||
//@[unknown_value] compile-flags: -Clinker-features=unknown | ||
//[unknown_value]~? ERROR incorrect value `unknown` for codegen option `linker-features` | ||
|
||
//@ revisions: unknown_modifier_value | ||
//@[unknown_modifier_value] compile-flags: -Zlinker-features=-unknown | ||
//[unknown_modifier_value]~? ERROR incorrect value `-unknown` for unstable option `linker-features` | ||
//@[unknown_modifier_value] compile-flags: -Clinker-features=-unknown | ||
//[unknown_modifier_value]~? ERROR incorrect value `-unknown` for codegen option `linker-features` | ||
|
||
//@ revisions: unknown_boolean | ||
//@[unknown_boolean] compile-flags: -Zlinker-features=maybe | ||
//[unknown_boolean]~? ERROR incorrect value `maybe` for unstable option `linker-features` | ||
//@[unknown_boolean] compile-flags: -Clinker-features=maybe | ||
//[unknown_boolean]~? ERROR incorrect value `maybe` for codegen option `linker-features` | ||
|
||
//@ revisions: invalid_separator | ||
//@[invalid_separator] compile-flags: -Zlinker-features=-lld@+lld | ||
//[invalid_separator]~? ERROR incorrect value `-lld@+lld` for unstable option `linker-features` | ||
//@[invalid_separator] compile-flags: -Clinker-features=-lld@+lld | ||
//[invalid_separator]~? ERROR incorrect value `-lld@+lld` for codegen option `linker-features` | ||
|
||
fn main() {} |
2 changes: 1 addition & 1 deletion
2
tests/ui/linking/linker-features-malformed.unknown_boolean.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `maybe` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `maybe` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
2 changes: 1 addition & 1 deletion
2
tests/ui/linking/linker-features-malformed.unknown_modifier_value.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `-unknown` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `-unknown` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
2 changes: 1 addition & 1 deletion
2
tests/ui/linking/linker-features-malformed.unknown_value.stderr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `unknown` for unstable option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
error: incorrect value `unknown` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Check that only `-C linker-features=-lld` is stable on x64 linux, and that other linker | ||
// features require using `-Z unstable-options`. | ||
// | ||
// Note that, currently, only `lld` is parsed on the CLI, but that other linker features can exist | ||
// internally (`cc`). | ||
// | ||
//@ compile-flags: --target=x86_64-unknown-linux-gnu -C linker-features=+cc --crate-type=rlib | ||
//@ needs-llvm-components: x86 | ||
|
||
#![feature(no_core)] | ||
#![no_core] | ||
|
||
//~? ERROR incorrect value `+cc` for codegen option `linker-features` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: incorrect value `+cc` for codegen option `linker-features` - a list of enabled (`+` prefix) and disabled (`-` prefix) features: `lld` was expected | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.