diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-01-16 21:01:00 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-01-16 21:01:00 +0000 |
commit | dae39608bbfe0d0bdea05e041a77df1e3e99e48b (patch) | |
tree | 298853d965ea096547f0b9805f49f3e3f571c50b /include/__debug | |
parent | bde2871b62190f3423a2acbfd334be93782a1889 (diff) | |
download | libcxx-dae39608bbfe0d0bdea05e041a77df1e3e99e48b.tar.gz |
[libc++] Introduce _LIBCPP_EXTERN_VIS to fix __libcpp_debug_function link errors
Summary: On Windows tests that use `_LIBCPP_ASSERT` fail to link because the assertion handler function isn't correctly exported from the libc++ dylib. This patch fixes the dll import/export issues by introducing a new visibility macro `_LIBCPP_EXTERN_VIS` for use on external variables.
Reviewers: compnerd, smeenai, EricWF
Reviewed By: EricWF
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D28728
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@292158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__debug')
-rw-r--r-- | include/__debug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/__debug b/include/__debug index d95e33931..d01bacdf7 100644 --- a/include/__debug +++ b/include/__debug @@ -74,7 +74,7 @@ typedef void(*__libcpp_debug_function_type)(__libcpp_debug_info const&); /// __libcpp_debug_function - The handler function called when a _LIBCPP_ASSERT /// fails. -extern __libcpp_debug_function_type __libcpp_debug_function; +extern _LIBCPP_EXTERN_VIS __libcpp_debug_function_type __libcpp_debug_function; /// __libcpp_abort_debug_function - A debug handler that aborts when called. _LIBCPP_NORETURN _LIBCPP_FUNC_VIS |