CMake now supports Cross Compiling for Emscripten with simple toolchain files.
cxxmodules-custom-import-std-metadata-file
FASTBuild