File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,31 @@ See [the rustc-dev-guide for more info][sysllvm].
75
75
76
76
2 . Configure the build settings:
77
77
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
+
78
85
``` 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
80
103
```
81
104
82
105
If you plan to use ` x.py install ` to create an installation, you can either
You can’t perform that action at this time.
0 commit comments