This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/doc/rustc-dev-guide/src/tests
tests/ui/invalid-compile-flags Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ settings:
188
188
specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
189
189
16, ptr` will only run if it supports the comma-separated list of atomic
190
190
widths.
191
+ - ` needs-dynamic-linking ` - ignores if target does not support dynamic linking,
192
+ meaning it cannot create ` dylib ` and ` cdylib ` crates types
191
193
192
194
The following directives will check LLVM support:
193
195
Original file line number Diff line number Diff line change 17
17
//@[staticlib] compile-flags: --crate-type=staticlib
18
18
//@[staticlib] check-pass
19
19
20
- //@[dylib] ignore-musl (dylibs are not supported)
21
- //@[dylib] ignore-wasm (dylibs are not supported)
20
+ //@[dylib] needs-dynamic-linking
22
21
//@[dylib] compile-flags: --crate-type=dylib
23
22
//@[dylib] check-pass
24
23
25
- //@[cdylib] ignore-musl (cdylibs are not supported)
24
+ //@[cdylib] needs-dynamic-linking
26
25
//@[cdylib] compile-flags: --crate-type=cdylib
27
26
//@[cdylib] check-pass
28
27
39
38
//@[multivalue] compile-flags: --crate-type=lib,rlib,staticlib
40
39
//@[multivalue] check-pass
41
40
42
- //@[multivalue_combined] ignore-musl (dylibs are not supported)
43
- //@[multivalue_combined] ignore-wasm (dylibs are not supported)
44
- //@[multivalue_combined] compile-flags: --crate-type=lib,rlib,staticlib --crate-type=dylib
41
+ //@[multivalue_combined] compile-flags: --crate-type=lib,rlib --crate-type=staticlib
45
42
//@[multivalue_combined] check-pass
46
43
47
44
// `proc-macro` is accepted, but `proc_macro` is not.
You can’t perform that action at this time.
0 commit comments