File tree 2 files changed +6
-6
lines changed
src/doc/rustc-dev-guide/src/tests
tests/ui/invalid-compile-flags
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,8 @@ settings:
192
192
specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
193
193
16, ptr` will only run if it supports the comma-separated list of atomic
194
194
widths.
195
+ - ` needs-dynamic-linking ` - ignores if target does not support dynamic linking
196
+ (which is orthogonal to it being unable to create ` dylib ` and ` cdylib ` crate types)
195
197
196
198
The following directives will check LLVM support:
197
199
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] ignore-musl (dylib is supported, but musl libc is statically linked by default )
21
+ //@[dylib] ignore-wasm (dylib is not supported)
22
22
//@[dylib] compile-flags: --crate-type=dylib
23
23
//@[dylib] check-pass
24
24
25
- //@[cdylib] ignore-musl (cdylibs are not supported)
25
+ //@[cdylib] ignore-musl (cdylib is supported, but musl libc is statically linked by default )
26
26
//@[cdylib] compile-flags: --crate-type=cdylib
27
27
//@[cdylib] check-pass
28
28
39
39
//@[multivalue] compile-flags: --crate-type=lib,rlib,staticlib
40
40
//@[multivalue] check-pass
41
41
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
42
+ //@[multivalue_combined] compile-flags: --crate-type=lib,rlib --crate-type=staticlib
45
43
//@[multivalue_combined] check-pass
46
44
47
45
// `proc-macro` is accepted, but `proc_macro` is not.
You can’t perform that action at this time.
0 commit comments