Building with -DLIBCXX_ENABLE_THREADS=OFF -DLIBCXXABI_ENABLE_THREADS=OFF
(like e.g. for wasm) fails after D146228 because of a misplaced std
namespace begin/end.
Details
Details
- Reviewers
philnik - Group Reviewers
Restricted Project - Commits
- rG101cfe18f7b8: [libcxx] Fix build bustage with threads disabled
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Could you maybe give a few more specifics about what the problem is? Not opening the namespace shouldn't result in an error, and we do it this way in lots of places.
Comment Actions
I see the problem now. The #ifdef _LIBCPP_HAS_NO_THREADS is split in the middle of the file, which results in a function being defined in the global namespace instead of the standard one. LGTM.
clang-format not found in user’s local PATH; not linting file.