File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/doc/unstable-book/src/language-features Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ that is necessary for linking against dylibs that statically link `std` (such as
13
13
This makes this feature "viral" in linkage; its use in a given crate makes its use required in
14
14
dependent crates which link to it (including integration tests, which are built as separate crates).
15
15
16
+ ## Required Components
16
17
18
+ ### When using ` rustc-private ` with Official Toolchains
17
19
18
- ### Required Components
19
-
20
- To use the ` rustc_private ` feature, you need to install:
20
+ When using the ` rustc_private ` feature with official toolchains distributed via rustup, you'll need to install:
21
21
22
22
1 . The ` rustc-dev ` component (provides compiler libraries)
23
23
2 . The ` llvm-tools ` component (provides LLVM libraries needed for linking)
@@ -35,3 +35,10 @@ error: linking with `cc` failed: exit status: 1
35
35
|
36
36
= note: rust-lld: error: unable to find library -lLLVM-{version}
37
37
```
38
+
39
+ ### When using ` rustc-private ` with Custom Toolchains
40
+
41
+ For custom-built toolchains or environments not using rustup, different configuration may be required:
42
+
43
+ - Ensure LLVM libraries are available in your library search paths
44
+ - You might need to configure library paths explicitly depending on your LLVM installation
You can’t perform that action at this time.
0 commit comments