You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can control this using the name parameter to zig fetch --save, of course, but it'd be nice to be able to rely on the defaults and get good names by default.
Point 2: use snake_case for build.zig CLI flags always
In build.zig, CLI option flags are often defined as e.g.:
const debug_symbols = b.option(bool, "debug-symbols", "Whether to produce detailed debug symbols (g0) or not.") orelse false;
And would be used via zig build -Ddebug-symbols=true. However, they are also specified when using the package in Zig code:
Point 1: use snake_case for all package names in build.zig.zon
If
build.zig.zon
contains.name = "mach-dxcompiler"
thenzig fetch --save
will produce an entry like this using@""
syntax:Rather than the nicer form:
We can control this using the name parameter to
zig fetch --save
, of course, but it'd be nice to be able to rely on the defaults and get good names by default.Point 2: use snake_case for build.zig CLI flags always
In build.zig, CLI option flags are often defined as e.g.:
And would be used via
zig build -Ddebug-symbols=true
. However, they are also specified when using the package in Zig code:Again, it would be nice to avoid
@""
syntax - so we will usedebug_symbols
instead (.debug_symbols = false,
and-Ddebug_symbols=true
as the CLI flag.)The text was updated successfully, but these errors were encountered: