Skip to content

feat: Update zig buildExe snippet for zig 0.15.0+#606

Open
estevesnp wants to merge 1 commit intorafamadriz:mainfrom
estevesnp:main
Open

feat: Update zig buildExe snippet for zig 0.15.0+#606
estevesnp wants to merge 1 commit intorafamadriz:mainfrom
estevesnp:main

Conversation

@estevesnp
Copy link
Copy Markdown

After zig 0.15.0, the build system had some breaking changes, not allowing the ExecutableOptions to directly set the root_source_file, target and optimize fields, instead needing the root_module field to be set. This PR fixes that snippet, updating it to use the b.createModule function (but could also use b.addModule function instead).

Also formats the file according to the .editorconfig file.

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.

1 participant