Skip to content
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

Merged
merged 5 commits into from
Feb 16, 2025
Merged

Conversation

jcollie
Copy link
Collaborator

@jcollie jcollie commented Feb 15, 2025

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.

@jcollie jcollie requested a review from a team as a code owner February 15, 2025 22:22
@jcollie jcollie linked an issue Feb 15, 2025 that may be closed by this pull request
@jcollie jcollie force-pushed the gtk-debian-12 branch 3 times, most recently from ce852e4 to 377dbd7 Compare February 15, 2025 22:42
`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.
Copy link
Contributor

@mitchellh mitchellh left a 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.

Copy link
Contributor

@mitchellh mitchellh left a 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!

@jcollie jcollie merged commit 9a5bc65 into ghostty-org:main Feb 16, 2025
29 checks passed
@jcollie jcollie deleted the gtk-debian-12 branch February 16, 2025 00:31
@jcollie jcollie added this to the 1.2.0 milestone Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gtk: support libadwaita at least back to version 1.2 for Debian 12
2 participants