From e615aec97c7f1b3334a583c2a7bb61cae98d5cfc Mon Sep 17 00:00:00 2001 From: n4n5 Date: Wed, 20 May 2026 22:28:19 +0200 Subject: [PATCH 1/3] Update quickstart.md with stage2 note Added note about stage2 dependency in rustup toolchain linking. --- src/building/quickstart.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/building/quickstart.md b/src/building/quickstart.md index 42058246cd..40d3e38427 100644 --- a/src/building/quickstart.md +++ b/src/building/quickstart.md @@ -37,6 +37,7 @@ After building the compiler and standard library, you now have a working compiler toolchain. You can use it with rustup by linking it. ```sh +# note that sometimes you can only have the stage2 depending on the build config rustup toolchain link stage1 build/host/stage1 ``` From 5e22ebb6e17589e4c8e544c20ea628d8c2781920 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Thu, 21 May 2026 10:42:07 +0200 Subject: [PATCH 2/3] Update quickstart.md --- src/building/quickstart.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/building/quickstart.md b/src/building/quickstart.md index 40d3e38427..8377fd91ee 100644 --- a/src/building/quickstart.md +++ b/src/building/quickstart.md @@ -37,10 +37,12 @@ After building the compiler and standard library, you now have a working compiler toolchain. You can use it with rustup by linking it. ```sh -# note that sometimes you can only have the stage2 depending on the build config rustup toolchain link stage1 build/host/stage1 ``` +Depending on your configuration and the stage picked, you may only have +the `stage2` instead of the `stage1`. Change the commands accordingly. + Now you have a toolchain called `stage1` linked to your build. You can use it to test the compiler. From d36ef9731342263d2d48a44d00b3086c1613f7f4 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Thu, 21 May 2026 11:02:54 +0200 Subject: [PATCH 3/3] Update src/building/quickstart.md Co-authored-by: jyn --- src/building/quickstart.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/building/quickstart.md b/src/building/quickstart.md index 8377fd91ee..ca645f94fd 100644 --- a/src/building/quickstart.md +++ b/src/building/quickstart.md @@ -40,8 +40,11 @@ compiler toolchain. You can use it with rustup by linking it. rustup toolchain link stage1 build/host/stage1 ``` -Depending on your configuration and the stage picked, you may only have -the `stage2` instead of the `stage1`. Change the commands accordingly. +**NOTE**: If you use `./x setup tools`, the default stage will be set to 2 instead of 1. +Adjust your command accordingly: +```sh +rustup toolchain link stage2 build/host/stage2 +``` Now you have a toolchain called `stage1` linked to your build. You can use it to test the compiler.