Remove `MainLoop.method`. NFC (#26254)

The `MainLoop.method` property seems to be a string version of
`MainLoop.timingMode`.

It had exactly one user which was to generate a warning. The warning was
firing in the case when the method was `timeout` (which is the same as
`timingMode` == `EM_TIMING_SETTIMEOUT`). The warning code would then
reset `MainLoop.method` so that it would only fire "once per set main
loop". However, since this was changed to `warnOnce` in #10090, the
warning actually only fires once per program run.
1 file changed
tree: 019329d4eb2aaea2163bb4dc6c80d76cf54498bf
  1. .circleci/
  2. .github/
  3. cmake/
  4. docs/
  5. html/
  6. media/
  7. site/
  8. src/
  9. system/
  10. test/
  11. third_party/
  12. tools/
  13. .clang-format
  14. .editorconfig
  15. .git-blame-ignore-revs
  16. .gitattributes
  17. .gitignore
  18. .gitmodules
  19. .prettierrc.yml
  20. .style.yapf
  21. AUTHORS
  22. bootstrap
  23. bootstrap.bat
  24. bootstrap.py
  25. ChangeLog.md
  26. CONTRIBUTING.md
  27. em++
  28. em++.bat
  29. em++.py
  30. em-config.py
  31. emar.py
  32. embuilder.py
  33. emcc
  34. emcc.bat
  35. emcc.py
  36. emcmake.py
  37. emconfigure.py
  38. emmake.py
  39. emranlib.py
  40. emrun.py
  41. emscan-deps.py
  42. emscons.py
  43. emscripten-version.txt
  44. emsize.py
  45. emstrip.py
  46. eslint.config.mjs
  47. LICENSE
  48. Makefile
  49. package-lock.json
  50. package.json
  51. pyproject.toml
  52. README.md
  53. requirements-dev.txt
  54. SECURITY.md
README.md

emscripten logo

Main project page: https://emscripten.org

GitHub CI status: CircleCI

Chromium builder status: emscripten-releases

Overview

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).

License

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.