rustc: Stricter checking for #[link] attributes
This commit is contained in:
parent
70b3681bf6
commit
4fa24bcb54
61 changed files with 787 additions and 548 deletions
|
@ -1,6 +1,11 @@
|
|||
Some linking kinds are target-specific and not supported on all platforms.
|
||||
|
||||
Linking with `kind=framework` is only supported when targeting macOS,
|
||||
as frameworks are specific to that operating system.
|
||||
|
||||
Similarly, `kind=raw-dylib` is only supported when targeting Windows-like
|
||||
platforms.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```ignore (should-compile_fail-but-cannot-doctest-conditionally-without-macos)
|
||||
|
|
|
@ -12,3 +12,4 @@ Please specify a valid "kind" value, from one of the following:
|
|||
* static
|
||||
* dylib
|
||||
* framework
|
||||
* raw-dylib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue