Update emsdk version from 5e3cfa38 to fab320b1 (#27433) This is an automatic change generated by tools/maint/rebaseline_tests.py --update-emsdk. emsdk version updated: 5e3cfa38 => fab320b1 The following revisions were included in this update: ``` - fab320b1 Roll llvm-project from d1ce5f95fb66 to abd3b3a1445b (40 revisions) - 709a4147 Roll v8 from 5177b10891e6 to e3b65b3fed9f (28 revisions) - 726708e8 Roll binaryen from 0c633e76d977 to 55dff6b2430a (1 revision) - 9b6e0c0e Roll llvm-project from 912128312f02 to d1ce5f95fb66 (12 revisions) - c8304c7f Roll binaryen from 84529ec807ce to 0c633e76d977 (1 revision) - e41f8600 Roll emscripten from fec5d615cc78 to 1db513782be2 (1 revision) - 22548d60 Roll llvm-project from 4d14e9641ddf to 912128312f02 (24 revisions) - ba062c99 Roll emscripten from d983d28d44d5 to fec5d615cc78 (5 revisions) - cf229942 Clobber build. - 0089bda0 Roll llvm-project from b071e92ca3d3 to 4d14e9641ddf (189 revisions) - 71d43168 Add `CLANG_TIDY_ENABLE_STATIC_ANALYZER=OFF` to llvm build - b8779d27 Roll emscripten from 34cf5496e5ed to d983d28d44d5 (1 revision) - 2642b599 Roll v8 from 241f63a62a35 to 5177b10891e6 (1 revision) - 4cdabfe9 Roll llvm-project from 0bf3638ddfe6 to b071e92ca3d3 (13 revisions) - a8182b79 Roll v8 from 23c8862e7805 to 241f63a62a35 (10 revisions) - 5022eed9 Roll llvm-project from 43da8ef8d092 to 0bf3638ddfe6 (8 revisions) - 2e4e2fb6 Roll llvm-project from 5295852db273 to 43da8ef8d092 (11 revisions) - cd820551 Roll llvm-project from 3af6879ba3d6 to 5295852db273 (20 revisions) - 4e0f25de Roll binaryen from 51db22337dea to 84529ec807ce (1 revision) - 6fb9a129 Roll llvm-project from 0dd2c577357a to 3af6879ba3d6 (60 revisions) - fd7e5234 Roll binaryen from ad13059866f2 to 51db22337dea (1 revision) - a0122da3 Roll binaryen from 2e035664a74d to ad13059866f2 (1 revision) - 14a19321 Roll binaryen from 0a7b1713b9e1 to 2e035664a74d (2 revisions) - 32e73603 Roll llvm-project from 9e1be60f660c to 0dd2c577357a (77 revisions) - 0ad8dea3 Roll emscripten from ac90a66939a7 to 34cf5496e5ed (1 revision) - 085978a8 Roll v8 from 9c1357253e53 to 23c8862e7805 (28 revisions) - 7588204b Roll llvm-project from cad3c95a89c4 to 9e1be60f660c (14 revisions) ``` Full log: https://chromium.googlesource.com/emscripten-releases/+log/5e3cfa38..fab320b1 The following (3) test expectation files were updated by running the tests with `--rebaseline`: ``` codesize/test_codesize_cxx_wasmfs.json: 179386 => 179355 [-31 bytes / -0.02%] codesize/test_codesize_files_wasmfs.json: 63585 => 63554 [-31 bytes / -0.05%] codesize/test_codesize_minimal_pthreads.json: 25967 => 25967 [+0 bytes / +0.00%] Average change: -0.02% (-0.05% - +0.00%) ``` Co-authored-by: emscripten-bot <emscripten-bot@users.noreply.github.com>
Main project page: https://emscripten.org
Chromium builder status: emscripten-releases
Emscripten compiles C and C++ to WebAssembly using LLVM and Binaryen. Emscripten output can run on the Web, in Node.js, and in wasm runtimes.
Emscripten provides Web support for popular portable APIs such as OpenGL and SDL2, allowing complex graphical native applications to be ported, such as the Unity game engine and Google Earth. It can probably port your codebase, too!
While Emscripten mostly focuses on compiling C and C++ using Clang, it can be integrated with other LLVM-using compilers (for example, Rust has Emscripten integration, with the wasm32-unknown-emscripten target).
For detailed instructions and tutorials, visit the Emscripten Website.
There are two primary ways to install Emscripten:
Using the Emscripten SDK (emsdk) (Recommended) The easiest way to get started is by using the Emscripten SDK. Follow the instructions on the downloads page to install it.
From a Git Checkout (Manual Installation) If you have cloned the repository from Git, you can install the dependencies manually and then run the bootstrap script:
./bootstrap.py
For more details, see the developer guide.
Run emcc like you would gcc or clang:
$ emcc hello.c -o hello.js $ node hello.js Hello, world!
Emscripten will compile your code into a WebAssembly module along with a JavaScript file that can load and run it. You can then run the resulting JavaScript in your browser or under Node.js (or Deno or Bun).
Emscripten can also generate a sample HTML page that then loads the JavaScript:
$ emcc hello.c -o hello.html
You can then serve the generated hello.html using the emrun tool, or a web server of your choosing.
For information on how to contribute to the project, see CONTRIBUTING.md and the Contributing section on the website.
Emscripten is available under 2 licenses, the MIT license and the University of Illinois/NCSA Open Source License.
Both are permissive open source licenses, with little if any practical difference between them.
The reason for offering both is that (1) the MIT license is well-known and suitable for a compiler toolchain, while (2) LLVM‘s original license, the University of Illinois/NCSA Open Source License, was also offered to allow Emscripten’s code to be integrated upstream into LLVM. The second reason became less important after Emscripten switched to the LLVM wasm backend, at which point there isn't any code we expect to move back and forth between the projects; also, LLVM relicensed to Apache 2.0 + exceptions meanwhile. In practice you can just consider Emscripten as MIT licensed (which allows you to do pretty much anything you want with a compiler, including commercial and non-commercial use).
See LICENSE for the full content of the licenses.