Skip to content
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

Upgrade to Emscripten 2.0.29 #477

Merged
merged 2 commits into from
Aug 30, 2021
Merged

Conversation

Taytay
Copy link
Contributor

@Taytay Taytay commented Aug 29, 2021

I am not sure if this is a good idea to periodically do this or not, but it did expose a couple of surprising compile-time warnings that took me a while to work out, so I think there is value in it.

Note that I built this on top of my work in my other PR #476, so that npm ci commit will disappear from this diff when that's merged. (I rarely work on open source projects, so I'm not sure the best way to more easily capture stacking PRs like this when the branch I'm stacking on top of doesn't exist in the target repo).

It's worth noting that the compiled files appear to be smaller. (Emscripted 2.0.29 on the left. Latest release of sql.js on the right).
image

The only testing I've done is the npm test. I don't know if we need a more in-depth test suite and/or a performance test suite for these sorts of changes.

This reduces the chance that another dev will forget to do this.
Changes required:
* Defined EM_NODE_JS environment variable to get rid of
a warning that appears if the NODE environment variable
is set, but EM_NODE_JS is not.
* EXTRA_EXPORTED_RUNTIME_METHODS is now EXPORTED_RUNTIME_METHODS
* No longer pass the `-s LINKABLE=1` option to emcc when compiling. (This is a linktime setting and emcc
warns about not using a linktime setting when compiling now).
@Taytay Taytay mentioned this pull request Aug 29, 2021
@lovasoa lovasoa merged commit 16d9a13 into sql-js:master Aug 30, 2021
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.

2 participants