This repository was archived by the owner on Aug 22, 2022. It is now read-only.
Repository navigation
Conversation
dschuff
approved these changes
Jun 21, 2019
dschuff
left a comment
Member
There was a problem hiding this comment.
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?
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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