File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ the Swift SDK in the following command to the version that matches your installe
9
9
swift package --swift-sdk swift-6.2-DEVELOPMENT-SNAPSHOT-2025-06-17-a_wasm js --use-cdn
10
10
```
11
11
12
+ If you'd like to produce a smaller binary (under 400 kB), you'll have to use
13
+ ` swift-DEVELOPMENT-SNAPSHOT-2025-08-11 ` or later development snapshot of the ` main ` Swift toolchain
14
+ branch. Earlier versions (including Swift 6.2) have no support for ` async ` functions in Embedded Swift,
15
+ which is required for WebGPU setup. Use the following command to build with Embedded Swift (update for
16
+ your installed toolchain version if needed):
17
+
18
+ ```
19
+ swift package --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2025-08-11-a_wasm-embedded js --use-cdn -c release
20
+ ```
21
+
12
22
WebGPU is enabled by default in beta and technical preview versions of Safari. Safari 17 and 18 require enabling
13
23
WebGPU feature flag as shown on the screenshot:
14
24
You can’t perform that action at this time.
0 commit comments