Mmastodon TechnologySoftware first seen 12 d ago, last 12 d ago, peak #11
Developer removes -Dversion option, now reads version from build.zig.zon
Original: Alright, removed the `-Dversion` option as I'm now pulling the version number straight from the `build.zig.zon` file. Th
A developer working on a Zig project has removed the -Dversion build option, instead pulling the version number directly from the build.zig.zon file. The value is passed into build.zig as a module and made available to the main program. They also switched the build optimization mode from small, which produced a roughly 250kB compile size, to fast.
Why now: The developer is sharing a build-system refactor in the Zig ecosystem, which is of interest to other Zig users.
Rank over time, top of the chart is #1. 2 snapshots from 12 d ago to 12 d ago.
Evidence
- Alright, removed the `-Dversion` option as I'm now pulling the version number straight from the `build.zig.zon` file. This gets passed to the `build.zon` file, converted to a module, then passed to the main program. Also changed the build from small (250kB compile size) to fast… · jamesthebard@social.linux.pizza · 1
API: https://socialmediatrends-api.osmike.com/v1/trends/4902022