[PATCH] D24945: [libc++abi] Default to DLL annotations on Windows

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 26 18:43:30 PDT 2016


EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.

LGTM after addressing inline comments. Unfortunately libc++abi doesn't have a way to  make `_LIBCXXABI_DISABLE_DLL_IMPORT_EXPORT` persistent, but this solution works for now.


================
Comment at: CMakeLists.txt:255
@@ -252,1 +254,3 @@
+add_definitions(-D_LIBCXXABI_BUILDING_LIBRARY)
+
 append_if(LIBCXXABI_COMPILE_FLAGS LIBCXXABI_HAS_WERROR_FLAG -Werror=return-type)
----------------
We probably want to define `_LIBCXXABI_DISABLE_DLL_IMPORT_EXPORT` on Windows when `LIBCXXABI_ENABLE_SHARED=OFF` and `LIBCXXABI_ENABLE_STATIC=ON`.


https://reviews.llvm.org/D24945





More information about the cfe-commits mailing list