https://github.com/kripken/emscripten/pull/1196/files#L11L579