Skip to content

Commit bd6d30f

Browse files
authored
Unrolled build for rust-lang#140213
Rollup merge of rust-lang#140213 - onur-ozkan:x-setup, r=cuviper mention about `x.py setup` in `INSTALL.md` Addresses [#t-infra/bootstrap > Installing from Source](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Installing.20from.20Source).
2 parents 862156d + a224942 commit bd6d30f

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

INSTALL.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,31 @@ See [the rustc-dev-guide for more info][sysllvm].
7575

7676
2. Configure the build settings:
7777

78+
If you're unsure which build configurations to use and need a good default, you
79+
can run the interactive `x.py setup` command. This will guide you through selecting
80+
a config profile, setting up the LSP, configuring a Git hook, etc.
81+
82+
With `configure` script, you can handle multiple configurations in a single
83+
command which is useful to create complex/advanced config files. For example:
84+
7885
```sh
79-
./configure
86+
./configure --build=aarch64-unknown-linux-gnu \
87+
--enable-full-tools \
88+
--enable-profiler \
89+
--enable-sanitizers \
90+
--enable-compiler-docs \
91+
--set target.aarch64-unknown-linux-gnu.linker=clang \
92+
--set target.aarch64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
93+
--set target.aarch64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
94+
--set llvm.link-shared=true \
95+
--set llvm.thin-lto=true \
96+
--set llvm.libzstd=true \
97+
--set llvm.ninja=false \
98+
--set rust.debug-assertions=false \
99+
--set rust.jemalloc \
100+
--set rust.use-lld=true \
101+
--set rust.lto=thin \
102+
--set rust.codegen-units=1
80103
```
81104

82105
If you plan to use `x.py install` to create an installation, you can either

0 commit comments

Comments
 (0)