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 a0ea351 commit 9ff647a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/unstable-book/src/compiler-flags/codegen-backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ This feature allows you to specify a path to a dynamic library to use as rustc's
code generation backend at runtime.

Set the `-Zcodegen-backend=<path>` compiler flag to specify the location of the
backend. The library must contain a function named `__rustc_codegen_backend`
with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
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
```rust,ignore
Expand Down

0 comments on commit 9ff647a

Please sign in to comment.