Skip to content

Commit b32d0d8

Browse files
Jomy10yonihemi
andauthored
Update to 5.5 (#16)
* Update to 5.5 * Add arm64 toolchain Co-authored-by: yonihemi <jonathan@hemi.dev>
1 parent 24dfe96 commit b32d0d8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/getting-started/setup.md

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

55
## Releases
66

7-
### SwiftWasm 5.4
7+
### SwiftWasm 5.5
88

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

1111
| Download | Docker Tag |
1212
|:------------------:|:----------:|
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) |
13+
| [macOS arm64](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.5.0-RELEASE/swift-wasm-5.5.0-RELEASE-macos_arm64.pkg) | Unavailable |
14+
| [macOS x86](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.5.0-RELEASE/swift-wasm-5.5.0-RELEASE-macos_x86_64.pkg) | Unavailable |
15+
| [Ubuntu 18.04 x86](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.5.0-RELEASE/swift-wasm-5.5.0-RELEASE-ubuntu18.04_x86_64.tar.gz) | [5.5, 5.5-bionic, bionic, latest](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
16+
| [Ubuntu 20.04 x86](https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.5.0-RELEASE/swift-wasm-5.5.0-RELEASE-ubuntu20.04_x86_64.tar.gz) | [5.5-focal, focal](https://github.com/orgs/swiftwasm/packages/container/package/swift) |
1617

1718

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

3334
### Installation
3435

35-
1. [Download the latest package release.](https://book.swiftwasm.org/getting-started/setup.html#swiftwasm-54)
36+
1. [Download the latest package release](https://book.swiftwasm.org/getting-started/setup.html#swiftwasm-55) according to your CPU architecture (arm64 for [Apple silicon Macs](https://support.apple.com/en-us/HT211814), x86 for Intel Macs).
3637
2. Run the package installer, which will install an Xcode toolchain into `/Library/Developer/Toolchains/`.
3738
3. To use the Swift toolchain with command-line tools, use `xcrun --toolchain swiftwasm` or add the Swift toolchain to your path as follows:
3839

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

4546
```bash
4647
$ swift --version
47-
SwiftWasm Swift version 5.4.2 (swiftlang-5.4.0)
48+
SwiftWasm Swift version 5.5 (swiftlang-5.5.0)
4849
Target: x86_64-apple-darwin20.6.0
4950
```
5051

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.
52+
> 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.5.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.
5253
5354

5455
## Linux

0 commit comments

Comments
 (0)