[PATCH] D53868: Build with -fvisibility=hidden

Louis Dionne via Phabricator reviews at reviews.llvm.org
Tue Oct 30 09:13:50 PDT 2018


ldionne requested changes to this revision.
ldionne added a comment.
This revision now requires changes to proceed.

I think changing the default breaks `_LIBCPP_HIDE_FROM_ABI_AFTER_V1`:

  #ifdef _LIBCPP_BUILDING_LIBRARY
  #  if _LIBCPP_ABI_VERSION > 1
  #    define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 _LIBCPP_HIDE_FROM_ABI
  #  else
  #    define _LIBCPP_HIDE_FROM_ABI_AFTER_V1
  #  endif
  #else
  #  define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 _LIBCPP_HIDE_FROM_ABI
  #endif

I think this would now need to be

  #ifdef _LIBCPP_BUILDING_LIBRARY
  #  if _LIBCPP_ABI_VERSION > 1
  #    define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 _LIBCPP_HIDE_FROM_ABI
  #  else
  #    define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 __attribute__((__visibility__(("default"))))
  #  endif
  #else
  #  define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 _LIBCPP_HIDE_FROM_ABI
  #endif


Repository:
  rCXX libc++

https://reviews.llvm.org/D53868





More information about the libcxx-commits mailing list