-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Expand file tree
/
Copy pathlink-self-contained-linker-disallowed.rs
More file actions
19 lines (15 loc) · 1.17 KB
/
link-self-contained-linker-disallowed.rs
File metadata and controls
19 lines (15 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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]~? ERROR only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable
//[unstable_positive]~? ERROR only `-C link-self-contained` values `y`/`yes`/`on`/`n`/`no`/`off`/`-linker` are stable