-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
WLED_DISABLE_2D does not compile #4736
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
Conversation
the compilation fails with tons of errors if you try to compile using WLED_DISABLE_2D "message": "enclosing class of constexpr non-static member function 'bool Segment::is2D() const' is not a literal type", "LineNumber": 766,
WalkthroughThe update modifies the Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (20)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
confirmed, fix is working. |
willmmiles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. At C++20 we could use consteval but until then we'll have to rely on dead branch elimination.
|
Do we know how common it is for people to use WLED_DISABLE_2D? Should we have a build env to confirm that works as expected? Maybe not actually release that bin, just part of our testing |
|
Back in 2022 (when implementing 2D) I wanted to keep binary small to fit OTA on ESP01 with 1M flash. My suggestion is to completely remove WLED_DISABLE_2D conditional compile. |
|
I am all for removing the compile flag. It seems quite a few people are using this flag for some reason. |
Hello! |
the compilation fails with tons of errors if you try to compile using WLED_DISABLE_2D "message": "enclosing class of constexpr non-static member function 'bool Segment::is2D() const' is not a literal type", "LineNumber": 766,
the compilation fails with tons of errors if you try to compile using WLED_DISABLE_2D
to reproduce the issue you can Run Build Task with this example environment:
it will compile, while running this:
fails.
Summary by CodeRabbit