building “latest-upstream” from source

25 views
Skip to first unread message

David Aurelio

unread,
Jul 27, 2019, 12:38:47 PM7/27/19
to emscripten-discuss
I am trying to run emscripten on a rather customised server platform, where the precompiled binaries don’t work. 

Is there a way to build “latest-upstream” from source, ending up with the same neat directory structure that emsdk will produce when installing the pre-built versions? I really appreciate the compactness of the distribution.

- I found waterfall/src/build.py, but I am not quite sure whether it can be used for that purpose, and how to use it.
- I did manage to checkout the necessary sources of binaryen, emscripten, llvm-project, and wabt (is that actually used?), changed to the respective revisions for v1.38.40, and started building llvm. Looking at the amount of files in lib/, there seems to be far more than what the prebuilt archive contains.

Thanks!

Alon Zakai

unread,
Jul 27, 2019, 1:31:27 PM7/27/19
to emscripte...@googlegroups.com
Yes, build.py from the waterfall is exactly how the emsdk builds it. It has some help with --help. Also you can see it in action where the emsdk is built, for example here is a build:


Then clicking on the LLVM logging links there, the second one has the build.py command in it,


and the first one has the output,


- Alon


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/a107c4fc-e598-405c-9542-1deba8af8ceb%40googlegroups.com.

David Aurelio

unread,
Jul 28, 2019, 4:22:46 PM7/28/19
to emscripten-discuss
Thanks for the helpful pointers, Alon. That got me started.

David

Reply all
Reply to author
Forward
0 new messages