[libcxx-commits] [PATCH] D86598: [libcxx] Fix compile for BUILD_EXTERNAL_THREAD_LIBRARY
David Nicuesa via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 26 06:23:47 PDT 2020
Nicu updated this revision to Diff 287954.
Nicu added a comment.
Removed previously added blank line.
Added previously removed blank line.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86598/new/
https://reviews.llvm.org/D86598
Files:
libcxx/include/__threading_support
libcxx/src/CMakeLists.txt
Index: libcxx/src/CMakeLists.txt
===================================================================
--- libcxx/src/CMakeLists.txt
+++ libcxx/src/CMakeLists.txt
@@ -323,7 +323,10 @@
if (LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY)
- file(GLOB LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES ../test/support/external_threads.cpp)
+ set(LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/../test/support/external_threads.cpp")
+ set(LIBCXX_INCLUDE_DIR
+ "${CMAKE_CURRENT_SOURCE_DIR}/../include")
if (LIBCXX_ENABLE_SHARED)
add_library(cxx_external_threads SHARED ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES})
@@ -337,6 +340,8 @@
COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}"
OUTPUT_NAME "c++external_threads"
)
+
+ target_include_directories(cxx_external_threads PRIVATE ${LIBCXX_INCLUDE_DIR})
endif()
if (LIBCXX_INSTALL_LIBRARY)
Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -282,7 +282,7 @@
bool operator()(chrono::nanoseconds __elapsed) const;
};
-inline _LIBCPP_INLINE_VISIBILITY
+inline _LIBCPP_THREAD_ABI_VISIBILITY
bool __libcpp_timed_backoff_policy::operator()(chrono::nanoseconds __elapsed) const
{
if(__elapsed > chrono::milliseconds(128))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86598.287954.patch
Type: text/x-patch
Size: 1360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200826/b51ed825/attachment.bin>
More information about the libcxx-commits
mailing list