build: remove intermediate static lib #24
No reviewers
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "link-simplify"
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?
Hey! I ran into linking issues when incorporating this into a project because the engine lib was picking up my own
src/main.zig, I don't think this intermediate static lib is actually needed (at least on linux) so adding source directly to the step should do. (fingers crossed on that CI)You rock @mattnite :) This looks great and makes sense.
It seems
addStaticLibraryis not relative to build.zig, same issue we've run into with adding C sources (the reason we make those paths absolute / relative to build.zig first.) I guess we could keep the static lib, which might help with compile times in the future, if we did the same thing with making thesrc/main.ziginclude relative to our build.zig.For now, though, this seems good enough! @Avokadoen I suspect this is the same issue you were experiencing when you sent #23 so maybe you can switch back to upstream soon :)
Good job @mattnite and @slimsag! 😄