mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
docs: Fix shell var substitution in GettingStarted.md (#65803)
We're supposed to use `${platform}` for substituting this previously defined variable. Currently used `$(platform)` will try to run a command named `platform`, which doesn't make sense.
This commit is contained in:
@@ -471,12 +471,12 @@ platform=$([[ $(uname) == Darwin ]] && echo macosx || echo linux)
|
||||
|
||||
After setting that variable you can rebuild the compiler incrementally with this command:
|
||||
```sh
|
||||
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-$(platform)-$(uname -m) bin/swift-frontend
|
||||
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-${platform}-$(uname -m) bin/swift-frontend
|
||||
```
|
||||
|
||||
To rebuild everything that has its sources located in the `swift` repository, including the standard library:
|
||||
```sh
|
||||
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-$(platform)-$(uname -m)
|
||||
ninja -C ../build/Ninja-RelWithDebInfoAssert/swift-${platform}-$(uname -m)
|
||||
```
|
||||
|
||||
Similarly, you can rebuild other projects like Foundation or Dispatch by substituting their respective subdirectories in the commands above.
|
||||
|
||||
Reference in New Issue
Block a user