File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# Remarks on perma unstable features
3
2
4
3
## ` rustc_private `
@@ -18,15 +17,15 @@ When using the `rustc_private` feature with official Rust toolchains distributed
18
17
19
18
Install both components using rustup:
20
19
21
- ``` bash
20
+ ``` text
22
21
rustup component add rustc-dev llvm-tools
23
22
```
24
23
25
24
#### Common Error
26
25
27
26
Without the ` llvm-tools ` component, you'll encounter linking errors like:
28
27
29
- ```
28
+ ``` text
30
29
error: linking with `cc` failed: exit status: 1
31
30
|
32
31
= note: rust-lld: error: unable to find library -lLLVM-{version}
@@ -45,7 +44,7 @@ For custom-built toolchains or environments not using rustup, additional configu
45
44
46
45
1 . ** Check LLVM installation** : Verify LLVM is installed and accessible
47
46
2 . ** Configure library paths** : You may need to set environment variables:
48
- ``` bash
47
+ ``` text
49
48
export LD_LIBRARY_PATH=/path/to/llvm/lib:$LD_LIBRARY_PATH
50
49
```
51
50
3 . ** Check version compatibility** : Ensure your LLVM version is compatible with your Rust toolchain
You can’t perform that action at this time.
0 commit comments