On Tuesday, 25 November 2014 01:12:45 UTC, Steve Bennett wrote:
> Alas, llvm/clang is too old on Ubuntu (14.04) to work.
> Too hard.
You need the emsdk and ~8GB of free space. It needs to compile a custom clang/llvm build (which takes a while).
Sadly the problem is not anything of particular technical interest, it just needs some grunt work. To explain:
- Emscripten has a virtual filesystem (of course)
- all FS calls go via this vfs
- if you want files preloaded on the filesystem, you need to add them
- to do this, you need to add appropriate fs calls to your JS file
A nice example is
https://github.com/replit/empythoned/blob/master/map_filesystem.py
It runs through a bunch of files, making createDataFile calls which it dumps to stdout which you would insert into your final .js file so when JimTcl hunts the filesystem for (say) binary.tcl, it will find it.
As I said, pretty dull work.