-
Notifications
You must be signed in to change notification settings - Fork 690
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
gtk: fix building on Debian 12 #5791
Conversation
ce852e4
to
377dbd7
Compare
`std.debug.assert(x)` _is not_ the same as `if (!x) unreachable` because the function call is not `inline`. Since it's not inline the Zig compiler will try to compile any code that might otherwise be unreachable. Also, added a CI test that compiles Ghostty in a Debian 12 container to ensure that regressions do not happen.
377dbd7
to
0ce1342
Compare
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.
A couple small points. I don't love the idea of maintaining a Dockerfile for this but it is probably the most practical.
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.
Assuming CI passes, approved, thank you!
std.debug.assert(x)
is not the same asif (!x) unreachable
because the function call is notinline
. Since it's not inline the Zig compiler will try to compile any code that might otherwise be unreachable.Also, added a CI test that compiles Ghostty in a Debian 12 container to ensure that regressions do not happen.