On Thu, May 23, 2024, 10:27 Chuanqi Xu <chuanqi.xcq@alibaba-inc.com> wrote:
Yes, I personally agree. But my question actually is, there are library vendors don't buy it. For example, the libc++ developers say no explicitly.

In that case we need a proposal on how to annotate, in the code of the importable unit, that the importing unit must generate weak versions of the symbols that would otherwise be provided by the library

Trying to handle this only in the build system is a really bad idea, IMHO.

Daniel