Generating web assembly using D

There are instructions on the dlang wiki about building web assembly based D libraries. They do work (tested running a local webserver with node.js). The default setup of llvm, however, doesn't seem to naturally place the wasm-ld binary in the correct place, leading to compile errors along the lines of "wasm-ld not found". The binary will appear in /usr/lib/llvm-10/bin (or equivalent, depending on which version of llvm is installed) - you just need to symbolically link that so that it appears in the /usr/bin directory.