Skip to content

Commit a4ef243

Browse files
author
Kjetil Kjeka
committed
Update rustc reference with llvm-bitcode-linker flavor and component
1 parent 5c15ede commit a4ef243

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ In addition to the stable set of linker flavors, the following unstable values a
1010
- `ptx`: use [`rust-ptx-linker`](https://github.com/denzp/rust-ptx-linker)
1111
for Nvidia NVPTX GPGPU support.
1212
- `bpf`: use [`bpf-linker`](https://github.com/alessandrod/bpf-linker) for eBPF support.
13+
- `llbc`: for linking in llvm bitcode. Install the preview rustup components`llvm-bitcode-linker`
14+
and `llvm-tools` to use as a self-contained linker by passing
15+
`-Zunstable-options -Clink-self-contained=+linker` together with `-Clinker-flavor=llbc`.
16+
Can currently only be used for Nvidia NVPTX targets (`nvptx64-nvidia-cuda`).
1317

1418
Additionally, a set of more precise linker flavors also exists, for example allowing targets to
1519
declare that they use the LLD linker by default. The following values are currently unstable, and

0 commit comments

Comments
 (0)