Thanks to visit codestin.com
Credit goes to github.com

Skip to content

build: self-hosted compiler progress #180

@emidoots

Description

@emidoots

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

  • aarch64-macos: tested 2022-09-09
  • x86_64-linux: tested 2022-09-08
  • x86_64-windows: tested 2022-09-09
aarch64-macos linux windows test
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

  • The HTTP server we use for running WebAssembly examples, apple_pie, use async, so our WASM examples cannot auto-start a web server and open the browser anymore. Not the end of the world.

Zig issues we are blocked on

Zig issues we have hacky workarounds for

Search for TODO(self-hosted)

Zig issues that are problems for us, but haven't been filed yet

NOT YET FILED:

  1. Our map-async example (which does not use zig async) required adding a useless field to the App 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') a4ddfb6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions