aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat.zig
AgeCommit message (Collapse)Author
2023-05-01build: add the Exercise.addExecutable methodManlio Perillo
Currently addExecutable is called 3 times, unnecessarily making the code more complex. The method takes as argument the path to the exercises directory. Additionally, use the new std.Build.ExecutableOptions.link_libc field. The new field was added in ziglang/zig@adc9b77d5f on 2023-04-13. Update the required Zig compiler version. Note that I added the **current** zig version to the changelog, since the reason for the change is known only to the person updating the version.
2023-04-12Update the code to the new zig versionManlio Perillo
Update the code to the breaking change in ziglang commit 60eabc0ec (std.Build.CompileStep: remove run() and install()) Update the zig version in the README.md file.
2023-04-07Insert current zig version for compatiblity!Chris Boesch
This is primarily to make users aware that there has been a change in the call for individual exercises.
2023-04-03build: restore support for Zig 0.6.0Manlio Perillo
The version check for Zig 0.6.0 was incorrect since commit 971ab7f (Use a zig build script to run ziglings). Move compatibility support to a separate file, in order to simplify build.zig. In case of incompatible version, exit with code 3 instead of 0, in order to detect the case of failure in a test (to be implemented). Remove the use of comptime when checking compatibility at the start of the build function, since it is not necessary. Closes #210.