Update codegen-backend.md
This commit is contained in:
parent
9ff647a0d1
commit
6ae5f36d0d
@ -12,6 +12,9 @@ backend. The library must be of crate type `dylib` and must contain a function
|
||||
named `__rustc_codegen_backend` with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
|
||||
|
||||
## Example
|
||||
See also the [`hotplug_codegen_backend`](https://github.com/rust-lang/rust/tree/master/src/test/run-make-fulldeps/hotplug_codegen_backend) test
|
||||
for a full example.
|
||||
|
||||
```rust,ignore
|
||||
use rustc_codegen_ssa::traits::CodegenBackend;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user