-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
fix: support clang in meson build #515
Conversation
Maybe we could fix this warning instead:
|
Does clang actually compile Hyprland? it didnt want to iirc a while ago |
https://github.com/viperML/Hyprland/actions/runs/2848249132 It doesn't seem like at first glance (standard builds failed when trying to push to cache) |
Meson only supports that flag with C++ <= 20 right now, and Hyprland seems to require C++23. This is why I wrote it to use
Clang uses libc++ by default (instead of libstdc++). Those builds failed because you ran them with |
If it does build in clang fine, I'd say this is ready to merge. We'll be using GCC in the Nix builds anyway. Not sure if there's a benefit to using Clang instead but I'll be happy to hear it out if there is. |
Honestly it's mostly just because I have |
ok |
Describe your PR, what does it fix/add?
Fixes an error when building with Clang, which doesn't yet support
-std=c++23
, and instead uses-std=c++2b
.Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Tested with Clang 14.0.6 and GCC 12.1.1.
Ideally, someone will replace this with
default_options : [ ..., 'cpp_std=c++23' ]
once Meson supports that.Is it ready for merging, or does it need work?
👍