I have built FastText C++ module as wasm module using the provided make file, that is using the following flags:
EMCXX = em++ EMCXXFLAGS = --bind --std=c++11