Skip to content

Commit

Permalink
Update codegen-backend.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky authored Oct 14, 2020
1 parent 9ff647a commit 6ae5f36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/unstable-book/src/compiler-flags/codegen-backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ae5f36

Please sign in to comment.