Skip to content

zig 0.15 compat fixes #19

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

Merged
merged 1 commit into from
Aug 2, 2025
Merged

zig 0.15 compat fixes #19

merged 1 commit into from
Aug 2, 2025

Conversation

FalsePattern
Copy link
Contributor

Updated build system to use root_module and addLibrary with .linkage = .static

Replaced all callconv(.C) with callconv(.c)

Tested with both zig 0.14.1 and 0.15.0-dev.1283+1fcaf90dd

Updated build system to use root_module and addLibrary with .linkage = .static

Replaced all callconv(.C) with callconv(.c)
@hazeycode hazeycode requested a review from Copilot August 2, 2025 14:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Zig build system to be compatible with Zig version 0.15, addressing breaking changes in the build API.

  • Migrated from addStaticLibrary to addLibrary with explicit static linkage
  • Updated build configuration to use root_module pattern for both tests and library
  • Ensured backward compatibility with Zig 0.14.1

@hazeycode hazeycode merged commit c3b5731 into zig-gamedev:main Aug 2, 2025
3 checks passed
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.

2 participants