forked from OSchip/llvm-project
Revert "[libcxx] Fix compile for BUILD_EXTERNAL_THREAD_LIBRARY"
This reverts commit 3b71f91558
.
The commit is breaking some build bots.
This commit is contained in:
parent
6102310d81
commit
a19fd1aab5
|
@ -282,7 +282,7 @@ struct __libcpp_timed_backoff_policy {
|
|||
bool operator()(chrono::nanoseconds __elapsed) const;
|
||||
};
|
||||
|
||||
inline _LIBCPP_THREAD_ABI_VISIBILITY
|
||||
inline _LIBCPP_INLINE_VISIBILITY
|
||||
bool __libcpp_timed_backoff_policy::operator()(chrono::nanoseconds __elapsed) const
|
||||
{
|
||||
if(__elapsed > chrono::milliseconds(128))
|
||||
|
|
|
@ -323,8 +323,7 @@ endif()
|
|||
|
||||
|
||||
if (LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY)
|
||||
set(LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../test/support/external_threads.cpp")
|
||||
file(GLOB LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES ../test/support/external_threads.cpp)
|
||||
|
||||
if (LIBCXX_ENABLE_SHARED)
|
||||
add_library(cxx_external_threads SHARED ${LIBCXX_EXTERNAL_THREADING_SUPPORT_SOURCES})
|
||||
|
@ -338,8 +337,6 @@ if (LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY)
|
|||
COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}"
|
||||
OUTPUT_NAME "c++external_threads"
|
||||
)
|
||||
|
||||
target_link_libraries(cxx_external_threads PRIVATE cxx-headers)
|
||||
endif()
|
||||
|
||||
if (LIBCXX_INSTALL_LIBRARY)
|
||||
|
|
Loading…
Reference in New Issue