Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b95a07b

Browse files
authored
Unrolled build for rust-lang#131001
Rollup merge of rust-lang#131001 - iyernaveenr:naveen_iyer/installation_clarity, r=onur-ozkan add clarity for custom path installation install.sysconfdir is another value, in addition to install.prefix, that could be set for custom path installation.
2 parents 8422e27 + 0df736c commit b95a07b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

INSTALL.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,23 @@ See [the rustc-dev-guide for more info][sysllvm].
7979
./configure
8080
```
8181

82-
If you plan to use `x.py install` to create an installation, it is
83-
recommended that you set the `prefix` value in the `[install]` section to a
84-
directory: `./configure --set install.prefix=<path>`
82+
If you plan to use `x.py install` to create an installation, you can either
83+
set `DESTDIR` environment variable to your custom directory path:
84+
85+
```bash
86+
export DESTDIR=<path>
87+
```
88+
89+
or set `prefix` and `sysconfdir` in the `[install]` section to your custom
90+
directory path:
91+
92+
```sh
93+
./configure --set install.prefix=<path> --set install.sysconfdir=<path>
94+
```
95+
96+
When the `DESTDIR` environment variable is present, the `prefix` and
97+
`sysconfdir` values are combined with the path from the `DESTDIR`
98+
environment variable.
8599

86100
3. Build and install:
87101

0 commit comments

Comments
 (0)