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
Copy file name to clipboardExpand all lines: docs/HowToGuides/GettingStarted.md
+37-33Lines changed: 37 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ toolchain as a one-off, there are a couple of differences:
95
95
cd swift
96
96
utils/update-checkout --clone
97
97
```
98
-
>**Note**
98
+
>**Important**\
99
99
> If you've already forked the project on GitHub at this stage, **do not
100
100
> clone your fork** to start off. We describe [how to setup your fork](#setting-up-your-fork)
101
101
> in a subsection below.
@@ -121,7 +121,7 @@ toolchain as a one-off, there are a couple of differences:
121
121
Detailed branching information, including names for release branches, can
122
122
be found in [Branches.md](/docs/Branches.md).
123
123
124
-
> **Note**
124
+
> [!NOTE]
125
125
> The commands used in the rest of this guide assumes that the absolute path
126
126
> to your working directory is something like `/path/to/swift-project/swift`.
127
127
> Double-check that running `pwd` prints a path ending with `swift`.
@@ -190,7 +190,7 @@ toolchain as a one-off, there are a couple of differences:
190
190
sudo chmod +x /usr/local/bin/sccache
191
191
```
192
192
193
-
>**Note**
193
+
>[!NOTE]
194
194
> LLDB currently requires at least `swig-1.3.40` but will successfully build
195
195
> with version 2 shipped with Ubuntu.
196
196
@@ -206,7 +206,7 @@ toolchain as a one-off, there are a couple of differences:
206
206
* If you installed and want to use Sccache: Run `sccache --version`; check
207
207
that this succeeds.
208
208
209
-
>**Note**
209
+
>[!NOTE]
210
210
> If you are running on Apple Silicon hardware (M1, M2, etc), ensure you have
211
211
> the native arm64 build of these dependencies installed and configured in your PATH.
212
212
>
@@ -247,8 +247,9 @@ to understand what the different tools do:
247
247
is a high-level automation script that handles configuration (via CMake),
248
248
building (via Ninja), caching (via Sccache), running tests and more.
249
249
250
-
> **Pro Tip**: Most tools support `--help` flags describing the options they
251
-
> support. Additionally, both Clang and the Swift compiler have hidden flags
250
+
> [!TIP]
251
+
> Most tools support `--help` flags describing the options they support.
252
+
> Additionally, both Clang and the Swift compiler have hidden flags
252
253
> (`clang --help-hidden`/`swiftc --help-hidden`) and frontend flags
253
254
> (`clang -cc1 --help`/`swiftc -frontend --help`) and the Swift compiler
254
255
> even has hidden frontend flags (`swiftc -frontend --help-hidden`). Sneaky!
@@ -308,23 +309,19 @@ You will need to slightly tweak the paths for other build configurations.
308
309
In many situations, there are several errors, so scrolling further back
309
310
and looking at the first error may be more helpful than simply looking
310
311
at the last error.
311
-
- Check if others have encountered the same issue on the [Swift Forums](https://forums.swift.org/c/development/compiler) or on [Swift repository 'Issues' tab][Swift Issues]. Here is a list of threads that describe common issues:
312
-
* [Problems with `build-script` building compiler with `–xcode`](https://forums.swift.org/t/problems-with-build-script-building-compiler-with-xcode/53477)
313
-
* [Error building the compiler (even with ninja)](https://forums.swift.org/t/error-building-the-compiler-even-with-ninja/54834)
314
-
* [Build failure on Apple MacBook Pro with Apple M1 Chip](https://forums.swift.org/t/build-failure-on-apple-silicon-m1-mac-mini/45011)
315
-
* [CMake cannot compile a test program](https://forums.swift.org/t/build-failure-locally/55695)
316
-
* [Building Swift compiler from source fails when not using Ninja](https://forums.swift.org/t/building-swift-compiler-from-source-fails-when-not-using-ninja/54656)
317
-
* [ALL_BUILD Target failing at validation](https://forums.swift.org/t/help-building-swift-in-xcode-error/49728)
318
-
* [“gtest/gtest.h” not found while compiling the compiler](https://forums.swift.org/t/gtest-gtest-h-not-found-in-typeref-cpp-while-compiling-the-compiler/44399)
319
-
- If you still could not find a solution to your issue, feel free to create a new Swift Forums thread in the [Development/Compiler](https://forums.swift.org/c/development/compiler) category:
320
-
- Include information about your configuration and the errors you are seeing.
312
+
- Check if others have encountered the same issue on the
313
+
[Swift forums][build-script-issues-forums] or in
314
+
[our issues][build-script-issues-github].
315
+
- If you still could not find a solution to your issue, feel free to create a new Swift forums thread in the [Development/Compiler](https://forums.swift.org/c/development/compiler) category:
316
+
- Include the command, information about your environment, and the errors
317
+
you are seeing.
321
318
- You can [create a gist](https://gist.github.com) with the entire build
322
319
output and link it, while highlighting the most important part of the
323
320
build log in the post.
324
321
- Include the output of `utils/update-checkout --dump-hashes`.
0 commit comments