From dfe1d59efcf3fa6095548694d4c1f9a091cec4e3 Mon Sep 17 00:00:00 2001 From: Nixon Enraght-Moony Date: Fri, 3 Feb 2023 19:06:03 +0000 Subject: [PATCH] Use host symlink for custom rustup toolchain --- src/building/how-to-build-and-run.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index 24786c0c0..fdfc1786e 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -122,16 +122,10 @@ you will likely need to build at some point; for example, if you want to run the entire test suite). ```bash -rustup toolchain link stage1 build//stage1 -rustup toolchain link stage2 build//stage2 +rustup toolchain link stage1 build/host/stage1 +rustup toolchain link stage2 build/host/stage2 ``` -The `` would typically be one of the following: - -- Linux: `x86_64-unknown-linux-gnu` -- Mac: `x86_64-apple-darwin` or `aarch64-apple-darwin` -- Windows: `x86_64-pc-windows-msvc` - Now you can run the `rustc` you built with. If you run with `-vV`, you should see a version number ending in `-dev`, indicating a build from your local environment: