[all-commits] [llvm/llvm-project] 34933d: [libc++] Improves _LIBCPP_HAS_NO_THREADS guards. (...
Mark de Wever via All-commits
all-commits at lists.llvm.org
Tue Jan 16 10:13:51 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34933d1872b5eefb94dbd30dce3c342db008ad1c
https://github.com/llvm/llvm-project/commit/34933d1872b5eefb94dbd30dce3c342db008ad1c
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M libcxx/include/barrier
M libcxx/include/future
M libcxx/include/latch
M libcxx/include/semaphore
M libcxx/include/shared_mutex
M libcxx/include/stop_token
M libcxx/include/thread
Log Message:
-----------
[libc++] Improves _LIBCPP_HAS_NO_THREADS guards. (#76624)
Previously the header included several headers, possibly granularized
threading headers. This could lead to build errors when these headers
were incompatible with threading disabled.
Now test the guard before inclusion. This matches the pattern used for
no localization and no wide characters.
Fixes: https://github.com/llvm/llvm-project/issues/76620
More information about the All-commits
mailing list