[PATCH] D55664: [libc++] Fix _LIBCPP_EXPORTED_FROM_ABI when visibility annotations are disabled

Tom Anderson via Phabricator reviews at reviews.llvm.org
Thu Dec 13 12:09:19 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCXX349080: [libc++] Fix _LIBCPP_EXPORTED_FROM_ABI when visibility annotations are disabled (authored by thomasanderson, committed by ).
Herald added a subscriber: libcxx-commits.

Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55664/new/

https://reviews.llvm.org/D55664

Files:
  include/__config


Index: include/__config
===================================================================
--- include/__config
+++ include/__config
@@ -715,7 +715,11 @@
 #endif
 
 #ifndef _LIBCPP_EXPORTED_FROM_ABI
-#  define _LIBCPP_EXPORTED_FROM_ABI __attribute__((__visibility__("default")))
+#  if !defined(_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS)
+#    define _LIBCPP_EXPORTED_FROM_ABI __attribute__((__visibility__("default")))
+#  else
+#    define _LIBCPP_EXPORTED_FROM_ABI
+#  endif
 #endif
 
 #ifndef _LIBCPP_OVERRIDABLE_FUNC_VIS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55664.178114.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181213/d2f12abd/attachment.bin>


More information about the libcxx-commits mailing list