Successfully build libstdc++ for wasm32-wasi

unlvsur unlvsur unlvsur@live.com
Wed Apr 28 12:21:48 GMT 2021


Probably We need to tell clang to support -stdlib=libstdc++ for wasm? And nathan is able to modify the clang source code directly

Get Outlook for Android<https://aka.ms/AAb9ysg>

________________________________
From: Jonathan Wakely <jwakely.gcc@gmail.com>
Sent: Wednesday, April 28, 2021 4:52:55 AM
To: unlvsur unlvsur <unlvsur@live.com>
Cc: unlvsur unlvsur via Libstdc++ <libstdc++@gcc.gnu.org>
Subject: Re: Successfully build libstdc++ for wasm32-wasi



On Wed, 28 Apr 2021, 04:59 unlvsur unlvsur via Libstdc++, <libstdc++@gcc.gnu.org<mailto:libstdc%2B%2B@gcc.gnu.org>> wrote:
The issue is that clang front-end does not support -stdlib=libstdc++ for wasm32-wasi. It always adds -lc++abi toggle. Is that possible to disable this and use -lsupc++?


That seems like a question about using clang, so off topic here, but I would try -nostdlib -lsupc++




More information about the Libstdc++ mailing list