Successfully build libstdc++ for wasm32-wasi

unlvsur unlvsur
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<>

From: Jonathan Wakely <>
Sent: Wednesday, April 28, 2021 4:52:55 AM
To: unlvsur unlvsur <>
Cc: unlvsur unlvsur via Libstdc++ <>
Subject: Re: Successfully build libstdc++ for wasm32-wasi

On Wed, 28 Apr 2021, 04:59 unlvsur unlvsur via Libstdc++, <<>> 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