Skip to content

Commit 125a2e8

Browse files
authored
Update GettingStarted.md
1 parent 986b494 commit 125a2e8

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/HowToGuides/GettingStarted.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,7 @@ toolchain as a one-off, there are a couple of differences:
138138
The required version of Xcode changes frequently and is often a beta release.
139139
Check this document or the host information on <https://ci.swift.org> for the
140140
current required version.
141-
1. **If you are running on Apple Silicon hardware** (M1, M2, etc):
142-
Ensure you have the native arm64 build of Python configured.
143-
Run `file $(which python3)`; it should print "arm64".
144-
If it prints "x86_64", you are running Python in compatibility mode (Rosetta),
145-
and will need to ensure the native version of Python is installed and
146-
configured in your PATH.
147-
Running `uname -m` should also print "arm64", otherwise your terminal is also
148-
running in Rosetta mode.
149-
1. Install [CMake][], [Ninja][] and [Sccache][]:
141+
2. Install [CMake][], [Ninja][] and [Sccache][]:
150142
- Via [Homebrew][] (recommended):
151143
```sh
152144
brew install cmake ninja sccache
@@ -204,6 +196,15 @@ toolchain as a one-off, there are a couple of differences:
204196
* If you installed and want to use Sccache: Run `sccache --version`; check
205197
that this succeeds.
206198

199+
> **Note**
200+
> If you are running on Apple Silicon hardware (M1, M2, etc), ensure you have
201+
> the native arm64 build of these dependencies installed and configured in your PATH.
202+
>
203+
> e.g. running `file $(which python3)` should print "arm64".
204+
>
205+
> If it prints "x86_64", you are running Python in compatibility mode (Rosetta), and building Swift will fail.
206+
> Running `uname -m` should also print "arm64", otherwise your terminal is running in Rosetta mode.
207+
207208
### The roles of different tools
208209

209210
At this point, it is worthwhile to pause for a moment

0 commit comments

Comments
 (0)