linuxwave
linuxwave copied to clipboard
Zig 0.12/0.13
Description
Partially taken from #8
Change summary:
-
zig-clap
updated to 0.8.0, with necessary changes - removed the
main.zig
test, the cli parser chokes on the args received from the test invocation itself, and arguably this test isn't that useful to begin with - code in
gen.zig
adjusted for type casting breaking changes back from 0.11 - necessary build system changes for the new
optimize
terminology - other build system changes re: imports and modules
-
std.os -> std.posix
rename -
{write,read}IntLittle
functions now are called{write,read}Int
and accept an endian argument
Motivation and Context
How Has This Been Tested?
zig build
zig build -Doptimize=ReleaseSafe
zig build --summary all test
# run the built linuxwave and compare output to 0.1.5
Screenshots / Logs (if applicable)
Types of Changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation (no code change)
- [ ] Refactor (refactoring production code)
- [ ] Other
Checklist:
- [x] My code follows the code style of this project.
- [x] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
Seems https://hub.docker.com/r/euantorano/zig from the Dockerfile is no longer active...
Added some compatibility changes so that we can build for both zig 0.12 and 0.13:
- use
b.path()
to specify module paths inbuild.zig
- bump
zig-clap
to 0.9.1 - gitignore
.zig-cache/
as well