about summary refs log tree commit diff
path: root/INSTALL.md
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2025-04-23 21:03:29 +0300
committeronur-ozkan <work@onurozkan.dev>2025-04-24 09:15:53 +0300
commita224942d4cd234a20cf5521afb1debc7fc51eea9 (patch)
tree0716bb068063095a3b25789b6dc64f5e1c7e8716 /INSTALL.md
parent58c2dd9a54a325f4ce96f70332ceb07a3b58f0e5 (diff)
downloadrust-a224942d4cd234a20cf5521afb1debc7fc51eea9.tar.gz
rust-a224942d4cd234a20cf5521afb1debc7fc51eea9.zip
mention about `x.py setup` in `INSTALL.md`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md25
1 files changed, 24 insertions, 1 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 30e08201d6d..98eb825cd10 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -75,8 +75,31 @@ See [the rustc-dev-guide for more info][sysllvm].
 
 2. Configure the build settings:
 
+   If you're unsure which build configurations to use and need a good default, you
+   can run the interactive `x.py setup` command. This will guide you through selecting
+   a config profile, setting up the LSP, configuring a Git hook, etc.
+
+   With `configure` script, you can handle multiple configurations in a single
+   command which is useful to create complex/advanced config files. For example:
+
    ```sh
-   ./configure
+   ./configure --build=aarch64-unknown-linux-gnu \
+      --enable-full-tools \
+      --enable-profiler \
+      --enable-sanitizers \
+      --enable-compiler-docs \
+      --set target.aarch64-unknown-linux-gnu.linker=clang \
+      --set target.aarch64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
+      --set target.aarch64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
+      --set llvm.link-shared=true \
+      --set llvm.thin-lto=true \
+      --set llvm.libzstd=true \
+      --set llvm.ninja=false \
+      --set rust.debug-assertions=false \
+      --set rust.jemalloc \
+      --set rust.use-lld=true \
+      --set rust.lto=thin \
+      --set rust.codegen-units=1
    ```
 
    If you plan to use `x.py install` to create an installation, you can either