New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: self-hosted compiler progress #180
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
Solved the last error for compiling mach with glfw, basically Will test with the latest version of mach now and send a PR |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@PiergiorgioZagaria nice work, thanks so much for continuing to dig into this. I updated the issue description just now with what (I think?) the status quo is w.r.t. stage2 support, let me know if I should update anything there |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
With almost all tests/examples working on all platforms now with the new compiler, #180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
apple_pie has since been replaced with a web server dedicated to WASM serving: https://github.com/hexops/mach/tree/main/tools/wasmserve We're now fully on the self-hosted compiler, so closing. |
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
With almost all tests/examples working on all platforms now with the new compiler, hexops/mach#180, it's time to remove stage1 support. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This is the tracking issue for getting all Mach examples/libraries working with the new self-hosted Zig compiler, which will be enabled by default in Zig v0.11 and is already enabled by default in all nightly Zig builds.
Status
cd libs/ecs && zig build test -fno-stage1
cd libs/ecs && zig build test -fstage1
cd libs/gpu && zig build test
cd libs/gpu && zig build run-example
cd libs/glfw && zig build test
cd libs/sysaudio && zig build test
cd libs/sysaudio && zig build run-example-soundio-sine-wave
cd libs/freetype && zig build test
cd libs/freetype && zig build run-example-single-glyph -- 'a'
cd libs/freetype && zig build run-example-glyph-to-svg
cd libs/gpu-dawn && zig build
zig build-exe --main-pkg-path . ./tools/html-generator.zig
zig build run-example-triangle -fstage1 -Dtarget=wasm32-freestanding-musl
zig build run-shaderexp
zig build run-example-advanced-gen-texture-light
zig build run-example-boids
zig build run-example-ecs-app
zig build run-example-fractal-cube
zig build run-example-gkurve
zig build run-example-image-blur
zig build run-example-instanced-cube
zig build run-example-map-async
zig build run-example-rotating-cube
zig build run-example-textured-cube
zig build run-example-triangle
zig build run-example-triangle-msaa
zig build run-example-two-cubes
zig build run-example-cubemap
zig build example-triangle -Dtarget=wasm32-freestanding-musl
zig build run-example-triangle -fstage1 -Dtarget=wasm32-freestanding-musl
zig build example-sysaudio -Dtarget=wasm32-freestanding-musl
zig build run-example-sysaudio -fstage1 -Dtarget=wasm32-freestanding-musl
zig build
zig build test
Known issues
Zig issues we are blocked on
Zig issues we have hacky workarounds for
Search for
TODO(self-hosted)
usingnamespace
can create ambiguous reference ziglang/zig#12429@cImport
and SDL2 ziglang/zig#12737Zig issues that are problems for us, but haven't been filed yet
NOT YET FILED:
map-async
example (which does not use zig async) required adding a useless field to theApp
file struct (*App
is treated as*const App
for some reason otherwise, not sure why. Need to make a minimal repro and file a bug.error: expected type '*main.main', found '*const main.main'
) a4ddfb6The text was updated successfully, but these errors were encountered: