Petr Hosek via libcxx-dev libcxx-dev at lists.llvm.org
Fri Oct 2 17:44:54 PDT 2020

I'm setting up a Clang toolchain build on Windows. We need to include
runtimes for several targets including Windows, Linux and Fuchsia. In the
case of Windows and Linux we only want to provide static libc++. In the
case of Fuchsia we want to provide both static and shared.

This leads to an issue: because of this condition
is set to ON for Windows, but to OFF on Linux and Fuchsia. Since this
definition is a part of __config_site.in
we cannot use a single __config that would be usable for all targets which
breaks the build of our toolchain.

Does anyone know why we have that condition? Why is it only restricted to
Windows? It's not clear to me why libc++ on Windows should be different
from other platforms. Users that want to disable visibility annotations can
always set _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS in their build which is
what projects like Chromium and Fuchsia already do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20201002/3f2e745a/attachment.html>

More information about the libcxx-dev mailing list