Skip to content

Commit 24dfe96

Browse files
authored
Update setup.md to swift 5.4.0 (#15)
1 parent 30d9749 commit 24dfe96

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/getting-started/setup.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ To install Swift for WebAssembly toolchain, download one of the packages below a
44

55
## Releases
66

7-
### SwiftWasm 5.3
7+
### SwiftWasm 5.4
88

9-
Tag: [swift-wasm-5.3.1-RELEASE](https://github.com/swiftwasm/swift/releases/tag/swift-wasm-5.3.1-RELEASE)
9+
Tag: [swift-wasm-5.4.0-RELEASE](https://github.com/swiftwasm/swift/releases/tag/swift-wasm-5.4.0-RELEASE)
1010

1111
| Download | Docker Tag |
1212
|:------------------:|:----------:|
13-
| [macOS](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3.1-RELEASE/swift-wasm-5.3.1-RELEASE-macos_x86_64.pkg) | Unavailable |
14-
| [Ubuntu 18.04](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3.1-RELEASE/swift-wasm-5.3.1-RELEASE-ubuntu18.04_x86_64.tar.gz) | [5.3, 5.3-bionic, bionic, latest](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
15-
| [Ubuntu 20.04](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3.1-RELEASE/swift-wasm-5.3.1-RELEASE-ubuntu20.04_x86_64.tar.gz) | [5.3-focal, focal](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
13+
| [macOS](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.4.0-RELEASE/swift-wasm-5.4.0-RELEASE-macos_x86_64.pkg) | Unavailable |
14+
| [Ubuntu 18.04](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.4.0-RELEASE/swift-wasm-5.4.0-RELEASE-ubuntu18.04_x86_64.tar.gz) | [5.4, 5.4-bionic, bionic, latest](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
15+
| [Ubuntu 20.04](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.4.0-RELEASE/swift-wasm-5.4.0-RELEASE-ubuntu20.04_x86_64.tar.gz) | [5.4-focal, focal](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
1616

1717

1818
You can download the latest development snapshot from [the Releases page](https://github.com/swiftwasm/swift/releases)
@@ -32,7 +32,7 @@ An Xcode toolchain (`.xctoolchain`) includes a copy of the compiler, linker, and
3232

3333
### Installation
3434

35-
1. [Download the latest package release.](https://book.swiftwasm.org/getting-started/setup.html#swiftwasm-53)
35+
1. [Download the latest package release.](https://book.swiftwasm.org/getting-started/setup.html#swiftwasm-54)
3636
2. Run the package installer, which will install an Xcode toolchain into `/Library/Developer/Toolchains/`.
3737
3. To use the Swift toolchain with command-line tools, use `xcrun --toolchain swiftwasm` or add the Swift toolchain to your path as follows:
3838

@@ -44,11 +44,11 @@ export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PA
4444

4545
```bash
4646
$ swift --version
47-
SwiftWasm Swift version 5.3 (swiftlang-5.3.1)
48-
Target: x86_64-apple-darwin19.6.0
47+
SwiftWasm Swift version 5.4.2 (swiftlang-5.4.0)
48+
Target: x86_64-apple-darwin20.6.0
4949
```
5050

51-
> Warning: `xcrun` finds executable binary based on `--toolchain` option or `TOOLCHAINS` environment variable, but it also sets `SDKROOT` as host target SDK (e.g. `MacOSX.sdk`). So you need to specify `-sdk` option as `/Library/Developer/Toolchains/swift-wasm-5.3.1-RELEASE.xctoolchain/usr/share/wasi-sysroot` when launching `swiftc` from xcrun. `swift build` or other SwiftPM commands automatically find SDK path based on target triple, so they don't require to specify it.
51+
> Warning: `xcrun` finds executable binary based on `--toolchain` option or `TOOLCHAINS` environment variable, but it also sets `SDKROOT` as host target SDK (e.g. `MacOSX.sdk`). So you need to specify `-sdk` option as `/Library/Developer/Toolchains/swift-wasm-5.4.0-RELEASE.xctoolchain/usr/share/wasi-sysroot` when launching `swiftc` from xcrun. `swift build` or other SwiftPM commands automatically find SDK path based on target triple, so they don't require to specify it.
5252
5353

5454
## Linux

0 commit comments

Comments
 (0)