[cfe-dev] May libc++ support symbol versioning?

Zhihao Yuan via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 26 10:20:23 PST 2020

On Wednesday, February 26, 2020 11:16 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:

> > https://lists.freebsd.org/pipermail/freebsd-hackers/2020-February/055669.html
> FWIW: Joerg is exactly correct in that thread. Symbol versioning does
> not solve the problem, for precisely the reasons that he outlines. C++
> inline namespaces provide a strictly richer set of functionality than
> ELF symbol versioning and libc++ uses them for ABI stability. This does
> not help libraries that pass libc++ types across library boundaries.
> void printString(std::__2::string);

Not the case with -D_LIBCPP_ABI_UNSTABLE

So the question is what should libc++
deliver to FreeBSD in its first
unavoidable break, because I suppose,
nobody in FreeBSD want to break all
three stable versions again after this.

Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.

More information about the cfe-dev mailing list