all: use snake_case for package names and build CLI flags #1157
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#1157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Point 1: use snake_case for all package names in build.zig.zon
If
build.zig.zoncontains.name = "mach-dxcompiler"thenzig fetch --savewill 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_symbolsinstead (.debug_symbols = false,and-Ddebug_symbols=trueas the CLI flag.)