Compilation with -DLIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY was failing due to missing declarations of functions used in libcxx/include/atomic. The lines this commit affects are the places where those functions are defined, now moved to be always defined.
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rG3411a1a92015: Fix compile for -DLIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Out of curiosity, can you explain how you're using LIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY? It is documented as being a feature only for libc++ developers.
The change LGTM though.
David is working with me on improving the testing of external threading configurations.
I'm curious to understand what your setup is.
Also, please run arcfilter next time you commit a patch to libcxx! Thanks!
I'm curious to understand what your setup is.
Internally we use _LIBCPP_HAS_THREAD_API_EXTERNAL in our downstream libc++ fork intended for the bare-metal environment. We aim to provide testing of this configuration and also the _LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL one. The plan is to set up public build bots for testing them. Unfortunately, this work is not high-priority, so I cannot make any commitments w.r.t. to it.