diff options
| author | XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> | 2020-10-14 14:46:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-14 14:46:30 +0200 |
| commit | 9ff647a0d1565aa95069a5fc876b57cb35d6da16 (patch) | |
| tree | b15d9e1f94e9a6d17a8956d348b46ede8387e4fc | |
| parent | a0ea35116b352c194b0f7745812efe36cef752b4 (diff) | |
| download | rust-9ff647a0d1565aa95069a5fc876b57cb35d6da16.tar.gz rust-9ff647a0d1565aa95069a5fc876b57cb35d6da16.zip | |
Update codegen-backend.md
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/codegen-backend.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md index efccff42caa..87b2184676a 100644 --- a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md +++ b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md @@ -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 |
