diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -855,14 +855,6 @@ config_define(${abi_defines} _LIBCPP_ABI_DEFINES) endif() -# By default libc++ on Windows expects to use a shared library, which requires -# the headers to use DLL import/export semantics. However when building a -# static library only we modify the headers to disable DLL import/export. -if (DEFINED WIN32 AND LIBCXX_ENABLE_STATIC AND NOT LIBCXX_ENABLE_SHARED) - message(STATUS "Generating custom __config for non-DLL Windows build") - config_define(ON _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS) -endif() - # Setup all common build flags ================================================= function(cxx_add_common_build_flags target) cxx_add_basic_build_flags(${target})