Hello!
Tom Stellard <tstellar(a)redhat.com> writes:
Would it be possible to re-use the existing libcxx package and
just build it twice, once for the host and once for wasm? Kind
of like what some packages do for mingw?
Maybe; I assume nor me nor Jan have any previous experience with
building libcxx, so we are not really qualified to answer.
The upstream wasi-sdk project (which my wasi-libc is one part of)
generally relies on llvm toolchain for everything. The SDK itself is
basically a llvm/clang/clang++ built to emit WASM with associated
standard libraries thrown in.
Now it might be possible to just build the GNU libcxx for wasm32-wasi
target (presumably using wasi-libc as the libc implementation)
and that would be usable; on the other hand, it might not, and the llvm
libcxx would be needed.
Tom, would you be able to provide a test build of libcxx for
wasm32-wasi, so the other Jan can see if that would work for him?
Then we can decide what approach to take next.
--
Jan Staněk
Software Engineer, Red Hat
jstanek(a)redhat.com irc: jstanek