mach: improvements to build system (for wasm) #313
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!313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ay-build-improve"
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?
MACH_ADDRESSandMACH_PORTrespectively.The serve + launch steps can be customized with options in future, but right now it's kept as simple as possible.
This PR enables use of run step for wasm application. Now you can freely do
zig build run-example-* -Dtarget=wasm32-freestanding-noneand everything will just work (regarding the build system)Further, now generate separate html and wasm files in install:
With this PR we achieve feature parity for general support of wasm development.
Fixes hexops/mach#18
Successfully works in Windows+Chromium and Windows+Firefox. Firefox may require serving html files as
index.html(issue encountered in Librewolf fork)I made a small change to ensure the apple_pie submodule is cloned automatically
Damn, this is so cool @iddev5!
I can also confirm this works on macOS+Firefox and macOS+Safari