Skip to content

Commit 9ff647a

Browse files
authored
Update codegen-backend.md
1 parent a0ea351 commit 9ff647a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/unstable-book/src/compiler-flags/codegen-backend.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This feature allows you to specify a path to a dynamic library to use as rustc's
88
code generation backend at runtime.
99

1010
Set the `-Zcodegen-backend=<path>` compiler flag to specify the location of the
11-
backend. The library must contain a function named `__rustc_codegen_backend`
12-
with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
11+
backend. The library must be of crate type `dylib` and must contain a function
12+
named `__rustc_codegen_backend` with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
1313

1414
## Example
1515
```rust,ignore

0 commit comments

Comments
 (0)