[docs] Clarify emscripten instructions

Add an explanation for why one might want or need to pull the
emscripten SDK.

Change-Id: I243c97898f715499f2edd4b84cdef0594948732e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/488382
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Auto-Submit: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Nicholas Shahan
2026-03-17 01:47:39 -07:00
committed by Commit Queue
parent a5edb1208f
commit a90ee2476d
+7 -6
View File
@@ -86,12 +86,13 @@ fetch dart
Dart SDK uses `gclient` to manage dependencies which are described in the `DEPS` file. If you switch branches or update `sdk` checkout you need to run `gclient sync` to bring dependencies in sync with the SDK version.
Note: If you do not have emscripten, you can update your `.gclient` file to pull emscripten:
```
"custom_vars": {
"download_emscripten": True,
},
```
> [!NOTE]
> To run tests for `dart:ffi` support in dart2wasm one needs the emscripten sdk to build C code into a wasm module. If you need to run these tests locally and do not have emscripten, you can update your `.gclient` file to pull emscripten:
> ```
> "custom_vars": {
> "download_emscripten": True,
> },
> ```
<a id="building"></a>