Update emsdk version from dbd2a169 to 3355ee71 (#27696) This is an automatic change generated by tools/maint/rebaseline_tests.py --update-emsdk. emsdk version updated: dbd2a169 => 3355ee71 The following revisions were included in this update: ``` - 3355ee71 Roll llvm-project from e471938cf2c9 to a67c8f208e87 (8 revisions) - fb641391 Roll llvm-project from 2eb8c73f47c7 to e471938cf2c9 (41 revisions) - 55e66abd Roll binaryen from 45b6cd96f29e to b7c5ff3c8b4e (2 revisions) - 6bbc3a8f Roll binaryen from cb3586b8763d to 45b6cd96f29e (1 revision) - 2ce4af48 Roll llvm-project from 27d26292f819 to 2eb8c73f47c7 (57 revisions) - 4b32b422 Roll binaryen from 14bdb7f536a9 to cb3586b8763d (2 revisions) - e2095a2f Roll llvm-project from 18ea5b09a249 to 27d26292f819 (52 revisions) - 4db9cb52 Roll llvm-project from c9a1fc8d1dee to 18ea5b09a249 (52 revisions) - fd1ab687 Roll v8 from e1ac1f641ab1 to 603130eea0ed (22 revisions) - 098d4cbd Roll llvm-project from c5a4e6d87b7d to c9a1fc8d1dee (51 revisions) - bbc40349 Roll binaryen from ee098931c69f to 14bdb7f536a9 (2 revisions) - c106923c Roll llvm-project from fc6a6716ed7a to c5a4e6d87b7d (54 revisions) - 84af4a39 Roll binaryen from b872d117f55a to ee098931c69f (1 revision) - eb19f88e Roll emscripten from df49c0066bcf to bc7be4e0c44e (1 revision) - 2dd45a51 Roll llvm-project from e2955810d33e to fc6a6716ed7a (41 revisions) - 9d3c5279 Roll binaryen from 994a5cb99168 to b872d117f55a (1 revision) - 71149235 Roll llvm-project from 4d689e68a8e3 to e2955810d33e (36 revisions) - 1845064d Roll llvm-project from a2e2038fc932 to 4d689e68a8e3 (28 revisions) ``` Full log: https://chromium.googlesource.com/emscripten-releases/+log/dbd2a169..3355ee71 The following (11) test expectation files were updated by running the tests with `--rebaseline`: ``` codesize/test_codesize_cxx_ctors1.json: 153108 => 153150 [+42 bytes / +0.03%] codesize/test_codesize_cxx_ctors2.json: 152514 => 152556 [+42 bytes / +0.03%] codesize/test_codesize_cxx_except.json: 199258 => 199300 [+42 bytes / +0.02%] codesize/test_codesize_cxx_except_wasm.json: 168624 => 168663 [+39 bytes / +0.02%] codesize/test_codesize_cxx_except_wasm_legacy.json: 166484 => 166523 [+39 bytes / +0.02%] codesize/test_codesize_cxx_mangle.json: 265588 => 265630 [+42 bytes / +0.02%] codesize/test_codesize_cxx_noexcept.json: 155018 => 155060 [+42 bytes / +0.03%] codesize/test_codesize_cxx_wasmfs.json: 180124 => 180166 [+42 bytes / +0.02%] codesize/test_codesize_hello_dylink_all.json: 858817 => 858850 [+33 bytes / +0.00%] codesize/test_codesize_minimal_pthreads.json: 26015 => 26022 [+7 bytes / +0.03%] codesize/test_codesize_minimal_pthreads_memgrowth.json: 26474 => 26481 [+7 bytes / +0.03%] Average change: +0.02% (+0.00% - +0.03%) ``` 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.