[llvm] 8d67d00 - gn build: libcxx: Select the std_thread pstl backend.
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 21 14:55:34 PDT 2025
Author: Peter Collingbourne
Date: 2025-03-21T14:55:30-07:00
New Revision: 8d67d00a945d1b2b74b422edc8214cb1081e6487
URL: https://github.com/llvm/llvm-project/commit/8d67d00a945d1b2b74b422edc8214cb1081e6487
DIFF: https://github.com/llvm/llvm-project/commit/8d67d00a945d1b2b74b422edc8214cb1081e6487.diff
LOG: 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: https://github.com/llvm/llvm-project/pull/132455
Added:
Modified:
llvm/utils/gn/secondary/libcxx/include/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
index adcc78308dc72..6cebb217bb920 100644
--- a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+++ b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
@@ -41,8 +41,8 @@ if (current_toolchain == default_toolchain) {
"_LIBCPP_ABI_DEFINES=",
"_LIBCPP_HARDENING_MODE_DEFAULT=_LIBCPP_HARDENING_MODE_NONE",
"_LIBCPP_PSTL_BACKEND_LIBDISPATCH=",
- "_LIBCPP_PSTL_BACKEND_SERIAL=1",
- "_LIBCPP_PSTL_BACKEND_STD_THREAD=",
+ "_LIBCPP_PSTL_BACKEND_SERIAL=",
+ "_LIBCPP_PSTL_BACKEND_STD_THREAD=1",
]
if (libcxx_abi_namespace != "") {
values += [ "_LIBCPP_ABI_NAMESPACE=$libcxx_abi_namespace" ]
More information about the llvm-commits
mailing list