You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* (Optional) You can also build cargo by adding `src/tools/cargo` to previous command.
115
-
4. Copy cargo from a nightly toolchain: `cp $(rustup +nightly which cargo) ./build/host/stage2/bin/cargo`. Note that you would need to do this every time you rebuilt `rust` repository.
116
-
5. Link your new `rustc` to toolchain: `rustup toolchain link stage2 ./build/host/stage2/`.
7. You need to prefix every `./y.sh` (or `y` if you built `build_system/main.rs` as `y`) command by `rustup run stage2` to make cg_clif use your local changes in rustc.
119
-
*`rustup run stage2 ./y.sh prepare`
120
-
*`rustup run stage2 ./y.sh build`
121
-
* (Optional) run tests: `rustup run stage2 ./y.sh test`
122
-
8. Now you can use your cg_clif build to compile other Rust programs, e.g. you can open any Rust crate and run commands like `$RustCheckoutDir/compiler/rustc_codegen_cranelift/dist/cargo-clif build --release`.
123
-
124
-
You can also set `rust-analyzer.rustc.source` to your rust workspace to get rust-analyzer to understand your changes.
* (Optional) You can also build cargo by adding `src/tools/cargo` to previous command.
14
+
4. Copy cargo from a nightly toolchain: `cp $(rustup +nightly which cargo) ./build/host/stage2/bin/cargo`. Note that you would need to do this every time you rebuilt `rust` repository.
15
+
5. Link your new `rustc` to toolchain: `rustup toolchain link stage2 ./build/host/stage2/`.
7. You need to prefix every `./y.sh` (or `y` if you built `build_system/main.rs` as `y`) command by `rustup run stage2` to make cg_clif use your local changes in rustc.
18
+
*`rustup run stage2 ./y.sh prepare`
19
+
*`rustup run stage2 ./y.sh build`
20
+
* (Optional) run tests: `rustup run stage2 ./y.sh test`
21
+
8. Now you can use your cg_clif build to compile other Rust programs, e.g. you can open any Rust crate and run commands like `$RustCheckoutDir/compiler/rustc_codegen_cranelift/dist/cargo-clif build --release`.
22
+
23
+
You can also set `rust-analyzer.rustc.source` to your rust workspace to get rust-analyzer to understand your changes.
0 commit comments