Skip to content

Commit

Permalink
Unrolled build for rust-lang#131001
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Oct 6, 2024
2 parents 8422e27 + 0df736c commit b95a07b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,23 @@ See [the rustc-dev-guide for more info][sysllvm].
./configure
```

If you plan to use `x.py install` to create an installation, it is
recommended that you set the `prefix` value in the `[install]` section to a
directory: `./configure --set install.prefix=<path>`
If you plan to use `x.py install` to create an installation, you can either
set `DESTDIR` environment variable to your custom directory path:

```bash
export DESTDIR=<path>
```

or set `prefix` and `sysconfdir` in the `[install]` section to your custom
directory path:

```sh
./configure --set install.prefix=<path> --set install.sysconfdir=<path>
```

When the `DESTDIR` environment variable is present, the `prefix` and
`sysconfdir` values are combined with the path from the `DESTDIR`
environment variable.

3. Build and install:

Expand Down

0 comments on commit b95a07b

Please sign in to comment.