Skip to content

Commit a3c83b7

Browse files
committed
Revert "[libc++] Integrate the PSTL into libc++"
This reverts r366593, which caused unforeseen breakage on the build bots. I'm reverting until the problems have been figured out and fixed. llvm-svn: 366603
1 parent ff9c9e6 commit a3c83b7

File tree

17 files changed

+1
-73
lines changed

17 files changed

+1
-73
lines changed

libcxx/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ endif()
8080
option(LIBCXX_ENABLE_FILESYSTEM "Build filesystem as part of the main libc++ library"
8181
${ENABLE_FILESYSTEM_DEFAULT})
8282
option(LIBCXX_INCLUDE_TESTS "Build the libc++ tests." ${LLVM_INCLUDE_TESTS})
83-
option(LIBCXX_ENABLE_PARALLEL_ALGORITHMS "Enable the parallel algorithms library. This requires the PSTL to be available." OFF)
8483

8584
# Benchmark options -----------------------------------------------------------
8685
option(LIBCXX_INCLUDE_BENCHMARKS "Build the libc++ benchmarks and their dependencies" ON)
@@ -746,7 +745,6 @@ config_define_if(LIBCXX_HAS_WIN32_THREAD_API _LIBCPP_HAS_THREAD_API_WIN32)
746745
config_define_if(LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY _LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL)
747746
config_define_if(LIBCXX_HAS_MUSL_LIBC _LIBCPP_HAS_MUSL_LIBC)
748747
config_define_if(LIBCXX_NO_VCRUNTIME _LIBCPP_NO_VCRUNTIME)
749-
config_define_if_not(LIBCXX_ENABLE_PARALLEL_ALGORITHMS _LIBCPP_HAS_NO_PARALLEL_ALGORITHMS)
750748

751749
if (LIBCXX_ABI_DEFINES)
752750
set(abi_defines)

libcxx/include/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ set(files
6262
deque
6363
errno.h
6464
exception
65-
execution
6665
experimental/__config
6766
experimental/__memory
6867
experimental/algorithm

libcxx/include/__config_site.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#cmakedefine _LIBCPP_NO_VCRUNTIME
3030
#cmakedefine01 _LIBCPP_HAS_MERGED_TYPEINFO_NAMES_DEFAULT
3131
#cmakedefine _LIBCPP_ABI_NAMESPACE @_LIBCPP_ABI_NAMESPACE@
32-
#cmakedefine _LIBCPP_HAS_NO_PARALLEL_ALGORITHMS
3332

3433
@_LIBCPP_ABI_DEFINES@
3534

libcxx/include/algorithm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5678,8 +5678,4 @@ _LIBCPP_END_NAMESPACE_STD
56785678

56795679
_LIBCPP_POP_MACROS
56805680

5681-
#if !defined(_LIBCPP_HAS_NO_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
5682-
# include <pstl/internal/glue_algorithm_impl.h>
5683-
#endif
5684-
56855681
#endif // _LIBCPP_ALGORITHM

libcxx/include/execution

Lines changed: 0 additions & 19 deletions
This file was deleted.

libcxx/include/memory

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5590,8 +5590,4 @@ _LIBCPP_END_NAMESPACE_STD
55905590

55915591
_LIBCPP_POP_MACROS
55925592

5593-
#if !defined(_LIBCPP_HAS_NO_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
5594-
# include <pstl/internal/glue_memory_impl.h>
5595-
#endif
5596-
55975593
#endif // _LIBCPP_MEMORY

libcxx/include/module.modulemap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,6 @@ module std [system] {
275275
header "exception"
276276
export *
277277
}
278-
module execution {
279-
header "execution"
280-
export *
281-
}
282278
module filesystem {
283279
header "filesystem"
284280
export *

libcxx/include/numeric

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,4 @@ _LIBCPP_END_NAMESPACE_STD
586586

587587
_LIBCPP_POP_MACROS
588588

589-
#if !defined(_LIBCPP_HAS_NO_PARALLEL_ALGORITHMS) && _LIBCPP_STD_VER >= 17
590-
# include <pstl/internal/glue_numeric_impl.h>
591-
#endif
592-
593589
#endif // _LIBCPP_NUMERIC

libcxx/src/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ function(cxx_link_system_libraries target)
196196
endif()
197197
endfunction()
198198

199-
find_package(ParallelSTL QUIET)
200-
if (LIBCXX_ENABLE_PARALLEL_ALGORITHMS AND NOT TARGET pstl::ParallelSTL)
201-
message(FATAL_ERROR "Could not find ParallelSTL")
202-
endif()
203-
204199
function(cxx_set_common_defines name)
205200
if(LIBCXX_CXX_ABI_HEADER_TARGET)
206201
add_dependencies(${name} ${LIBCXX_CXX_ABI_HEADER_TARGET})
@@ -227,10 +222,6 @@ function(cxx_set_common_defines name)
227222
# in printf, scanf.
228223
_CRT_STDIO_ISO_WIDE_SPECIFIERS)
229224
endif()
230-
231-
if (LIBCXX_ENABLE_PARALLEL_ALGORITHMS)
232-
target_link_libraries(${name} PUBLIC pstl::ParallelSTL)
233-
endif()
234225
endfunction()
235226

236227
split_list(LIBCXX_COMPILE_FLAGS)

libcxx/test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ pythonize_bool(LIBCXX_HAS_ATOMIC_LIB)
4040
pythonize_bool(LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB)
4141
pythonize_bool(LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY)
4242
pythonize_bool(LIBCXX_DEBUG_BUILD)
43-
pythonize_bool(LIBCXX_ENABLE_PARALLEL_ALGORITHMS)
4443

4544
# By default, for non-standalone builds, libcxx and libcxxabi share a library
4645
# directory.

0 commit comments

Comments
 (0)