Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Start to package emscripten libraries in the zips - #542

Merged
kripken merged 1 commit into
masterfrom
packlib
Jun 21, 2019
Merged

kripken merged 1 commit into
masterfrom
packlib

Conversation

@kripken

@kripken kripken commented Jun 20, 2019

Copy link
Copy Markdown
Member

This seems to work locally, but not sure it will work on the bots.

So far just libc, to start with.

See emscripten-core/emscripten#8795 for background discussion

@kripken
kripken requested a review from dschuff June 20, 2019 00:12

@dschuff dschuff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we will need a corresponding change in emsdk to copy it out of the zip? Or what's the plan for that? I guess the other option is to allow overriding of the cache dir to a different location?

@kripken

kripken commented Jun 21, 2019

Copy link
Copy Markdown
Member Author

The emsdk side is a little nontrivial, yeah. In part due to how caching etc. works there. I have some ideas, I'll start to experiment once this part works ok.

@kripken
kripken merged commit ebd960d into master Jun 21, 2019
@kripken
kripken deleted the packlib branch June 21, 2019 15:48
kripken added a commit to emscripten-core/emsdk that referenced this pull request Jun 25, 2019
See WebAssembly/waterfall#542

The builds now contain lib/wasm-obj/ or lib/asmjs/ which have some cache contents. This places those in the cache so the user doesn't need to build them on first run, which for libc at least can be quite slow.

The mechanism here is to run emcc a first time in the emsdk. That clears the cache (since the emsdk just updated the .emscripten file). We can then safely place the files in the cache.

Note that FROZEN_CACHE is not used, since we do want to leave the user the option to build other things to the cache - we'll never ship all possible system and ports builds in the emsdk downloads, probably.

This contains a test, which passes on tot-upstream. The last tagged release doesn't have this yet.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants