Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ See docs/process.md for more on how version tagging works.
of `clang`. Previously, `.dwo` files were named `<input>.dwo` and other
auxiliary files were written to the temporary directory. (#28045)
- libunwind and compiler-rt were updated to LLVM 23.1.3. (#28011, #28014)
- JavaScript library dependencies on other JavaScript library symbols are now
detected automatically by the compiler, so `__deps` is no longer required for
direct JS-to-JS references (`__deps` is still supported for dependencies on
compiled C/C++ symbols or indirect dependencies). (#27995)
Comment thread
sbc100 marked this conversation as resolved.
- mimalloc was updated to 3.5.3. (#28026)

6.0.13 - 10/19/26
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,16 +584,15 @@ See the `library_*.js`_ files for other examples.

.. note::

- JavaScript libraries can declare dependencies (``__deps``), however
those are only for other JavaScript libraries. See examples in
`/src <https://github.com/emscripten-core/emscripten/tree/main/src>`_
with the name format **library_*.js**
- You can add dependencies for all your methods using
``autoAddDeps(myLibrary, name)`` where myLibrary is the object with
all your methods, and ``name`` is the thing they all depend upon.
This is useful when all the implemented methods use a JavaScript
singleton containing helper methods. See ``library_webgl.js`` for
an example.
- Direct dependencies between JavaScript library symbols are detected
automatically by the compiler. Explicit dependency declarations
(``__deps``) are only needed for compiled C/C++ functions or indirect
dependencies that are not referenced directly in the symbol's body (such
as ``$method_support`` above). See examples in
`/src/lib <https://github.com/emscripten-core/emscripten/tree/main/src/lib>`_.
- You can add an explicit dependency to all methods in a library using
``autoAddDeps(myLibrary, name)``, where ``myLibrary`` is the object with
all your methods and ``name`` is the symbol they all depend upon.
- The keys passed into `addToLibrary` generate functions that are prefixed
by ``_``. In other words ``my_func: function() {},`` becomes
``function _my_func() {}``, as all C methods in emscripten have a ``_`` prefix. Keys starting with ``$`` have the ``$``
Expand Down
Loading
Loading