The last commit modifies arachne-pnr to mount emscripten's NODEFS on /x if the resulting javascript is run under nodejs. This is useful for testing so that the resulting javascript can interact with files on the host filesystem. By default, emscripten-compiled output can only access its in-memory virtual filesystem. It also isn't possible to mount additional emscripten filesystems over the root, so as a compromise NODEFS is mounted on /x. After this change, it is possible to run commands like
This depends on my previous #73 PR.
The last commit modifies arachne-pnr to mount emscripten's NODEFS on
/x
if the resulting javascript is run under nodejs. This is useful for testing so that the resulting javascript can interact with files on the host filesystem. By default, emscripten-compiled output can only access its in-memory virtual filesystem. It also isn't possible to mount additional emscripten filesystems over the root, so as a compromise NODEFS is mounted on/x
. After this change, it is possible to run commands likeThis will create a
carry.asc
in the current working directory.