ikskuh / SDL.zig

A shallow wrapper around SDL that provides object API and error handling
MIT License
360 stars 79 forks source link

fix: rename Sdk.build -> Sdk.sdl_build to prevent build.zig's build f… #198

Closed dwclake closed 2 months ago

dwclake commented 2 months ago

The build.zig's Sdk.build field has a naming clash with build.zig's Sdk.build() function. I renamed the Sdk.build field to Sdk.sdl_build to prevent this naming clash.

As per Action: Continuous Build #1722

Run zig build install
/home/runner/work/SDL.zig/SDL.zig/build.zig:12:8: error: duplicate struct member name 'build'
/home/runner/work/SDL.zig/SDL.zig/build.zig:126:1: note: duplicate name here
/home/runner/work/SDL.zig/SDL.zig/build.zig:1:1: note: struct declared here
Error: Process completed with exit code 2.
ikskuh commented 2 months ago

Resolved by #199