mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Update codegen-backend.md
This commit is contained in:
parent
a0ea35116b
commit
9ff647a0d1
@ -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.
|
code generation backend at runtime.
|
||||||
|
|
||||||
Set the `-Zcodegen-backend=<path>` compiler flag to specify the location of the
|
Set the `-Zcodegen-backend=<path>` compiler flag to specify the location of the
|
||||||
backend. The library must contain a function named `__rustc_codegen_backend`
|
backend. The library must be of crate type `dylib` and must contain a function
|
||||||
with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
|
named `__rustc_codegen_backend` with a signature of `fn() -> Box<dyn rustc_codegen_ssa::traits::CodegenBackend>`.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user