Extract normalize_args function. NFC (#26268)

Split out of my work to create emld.
1 file changed
tree: f21f71dd0364b6951b2408fc54db5cdbe569249f
  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++.py
  28. em-config.py
  29. emar.py
  30. embuilder.py
  31. emcc.py
  32. emcmake.py
  33. emconfigure.py
  34. emmake.py
  35. emranlib.py
  36. emrun.py
  37. emscan-deps.py
  38. emscons.py
  39. emscripten-version.txt
  40. emsize.py
  41. emstrip.py
  42. eslint.config.mjs
  43. LICENSE
  44. Makefile
  45. package-lock.json
  46. package.json
  47. pyproject.toml
  48. README.md
  49. requirements-dev.txt
  50. 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.