File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1-
21# Remarks on perma unstable features
32
43## ` rustc_private `
@@ -18,15 +17,15 @@ When using the `rustc_private` feature with official Rust toolchains distributed
1817
1918Install both components using rustup:
2019
21- ``` bash
20+ ``` text
2221rustup component add rustc-dev llvm-tools
2322```
2423
2524#### Common Error
2625
2726Without the ` llvm-tools ` component, you'll encounter linking errors like:
2827
29- ```
28+ ``` text
3029error: linking with `cc` failed: exit status: 1
3130 |
3231 = 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
4544
46451 . ** Check LLVM installation** : Verify LLVM is installed and accessible
47462 . ** Configure library paths** : You may need to set environment variables:
48- ``` bash
47+ ``` text
4948 export LD_LIBRARY_PATH=/path/to/llvm/lib:$LD_LIBRARY_PATH
5049 ```
51503 . ** 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