-
-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
has_single_bit requires #include <bit> #308
Comments
Fixes rui314#308. Signed-off-by: Christoph Erhardt <github@sicherha.de>
Anyone know which version of Clang support this? Adding |
This was with Clang 13 |
Sorry for the late reply @rui314 For reference, the latest NDK r23 includes this bit header file which seems to be missing has_single_bit... I haven't check out NDK r24 beta which should be using Clang 14... There's no activity here so I assume r24 is pretty much the same? I think C++20 on Android is barely getting started... |
I submitted a change to remove the uses of |
Oops forgot to mention std::bit_ceil 😅
|
I removed the uses of |
I have gone ahead and log the issue as android/ndk#1664 to see what NDK folks think about this. Maybe they will list out timeline to add support for this. |
Thanks. I don't know if Android NDK officially supports C++20, but if it does, then it's clearly a bug. |
mold/mold.h
Line 163 in 0d542fb
Introduced by 6c9bb0d
Building on musl with LLVM/Clang/lld/libc++.
Adding
#include <bit>
tomold.h
resolves the below build time error:The text was updated successfully, but these errors were encountered: