Skip to content

Less default runtime exports #5892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Dec 6, 2017
Merged

Less default runtime exports #5892

merged 24 commits into from
Dec 6, 2017

Conversation

kripken
Copy link
Member

@kripken kripken commented Dec 3, 2017

More for #5836 (JS shrinking).

This removes almost all default function exports from the runtime. In ASSERTIONS builds, a warning will be shown if they are used, using the mechanism we introduced for getValue/setValue (which we recently removed from being exported by default).

This reduces the size of the #5836 testcase by almost 20% (!), shrinking us from 21.75 k to 17.65 k.

There are still a few things exported by default, like filesystem support (the file packager emits code that uses those, we should make extra sure this is not confusing for people) and things that aren't functions (need to investigate a good mechanism for warning if they are used incorrectly in ASSERTIONS mode, perhaps a getter on the Module object).

This PR also includes

  • Changelog update explaining the change.
  • Docs improvements.
  • An example in the SDL port of how to export runtime stuff if the port needs it (so e.g. people using SDL don't need to manually add exports, the port can do it for them).

@kripken kripken merged commit 3bc1f9f into incoming Dec 6, 2017
@kripken kripken deleted the less-default-runtime-exports branch December 6, 2017 22:25
CDanU added a commit to CDanU/uncrustify that referenced this pull request Dec 18, 2017
- adopt to changes in emscripten-core/emscripten#5892
- set the version to C++11
- update the interface itself
CDanU added a commit to CDanU/uncrustify that referenced this pull request Dec 19, 2017
- adopt to changes in emscripten-core/emscripten#5892
- set the version to C++11
- update the interface itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant