Skip to content

Commit 8d67d00

Browse files
authored
gn build: libcxx: Select the std_thread pstl backend.
In the CMake build the default pstl backend for libc++ when threads are enabled is std_thread. By selecting the wrong backend we were triggering some transitive_includes test failures. Reviewers: aeubanks, nico Reviewed By: aeubanks Pull Request: #132455
1 parent 72e596f commit 8d67d00

File tree

1 file changed

+2
-2
lines changed
  • llvm/utils/gn/secondary/libcxx/include

1 file changed

+2
-2
lines changed

llvm/utils/gn/secondary/libcxx/include/BUILD.gn

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ if (current_toolchain == default_toolchain) {
4141
"_LIBCPP_ABI_DEFINES=",
4242
"_LIBCPP_HARDENING_MODE_DEFAULT=_LIBCPP_HARDENING_MODE_NONE",
4343
"_LIBCPP_PSTL_BACKEND_LIBDISPATCH=",
44-
"_LIBCPP_PSTL_BACKEND_SERIAL=1",
45-
"_LIBCPP_PSTL_BACKEND_STD_THREAD=",
44+
"_LIBCPP_PSTL_BACKEND_SERIAL=",
45+
"_LIBCPP_PSTL_BACKEND_STD_THREAD=1",
4646
]
4747
if (libcxx_abi_namespace != "") {
4848
values += [ "_LIBCPP_ABI_NAMESPACE=$libcxx_abi_namespace" ]

0 commit comments

Comments
 (0)