It has been a persistent problem that it is difficult to produce core modules for our WASI target.
However, this can be overcome via -fuse-ld=lld (see https://github.com/llvm/llvm-project/blob/20d3aa944fb5cdbeb7e855fcd0800abd6d4a7842/clang/lib/Driver/ToolChains/WebAssembly.cpp#L46-L50). This won't work as-is, though, as we also pass some --component-types by default, which needs to be fixed up in some manner.
It has been a persistent problem that it is difficult to produce core modules for our WASI target.
However, this can be overcome via
-fuse-ld=lld(see https://github.com/llvm/llvm-project/blob/20d3aa944fb5cdbeb7e855fcd0800abd6d4a7842/clang/lib/Driver/ToolChains/WebAssembly.cpp#L46-L50). This won't work as-is, though, as we also pass some--component-types by default, which needs to be fixed up in some manner.