Skip to content
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

Update build.zig to latest zig-master #20

Merged
merged 2 commits into from
May 31, 2024
Merged

Update build.zig to latest zig-master #20

merged 2 commits into from
May 31, 2024

Conversation

kassane
Copy link
Owner

@kassane kassane commented May 16, 2024

fix: #19
Upstream issue: ziglang/zig#19947

@kassane kassane added the enhancement New feature or request label May 16, 2024
@kassane kassane requested a review from floooh May 16, 2024 12:48
@kassane

This comment was marked as resolved.

@kassane

This comment was marked as resolved.

@kassane kassane added fix fixing bug and removed enhancement New feature or request labels May 16, 2024
@kassane kassane marked this pull request as draft May 16, 2024 13:26
@kassane kassane assigned kassane and unassigned floooh May 16, 2024
@kassane kassane force-pushed the v0.13.0-master branch 2 times, most recently from 1a98d12 to 56ee2d0 Compare May 18, 2024 12:20
@kassane

This comment was marked as resolved.

@kassane kassane marked this pull request as ready for review May 18, 2024 12:43
@kassane
Copy link
Owner Author

kassane commented May 22, 2024

re-run CI/CD on v0.13.0-dev, today. ✔️

@kassane kassane mentioned this pull request May 25, 2024
13 tasks
@kassane
Copy link
Owner Author

kassane commented May 26, 2024

Wasm fix (wasm32-emscripten target added) [currently: master only]:

@kassane kassane force-pushed the v0.13.0-master branch 3 times, most recently from 4e2b53b to cf084d8 Compare May 26, 2024 16:30
@kassane
Copy link
Owner Author

kassane commented May 26, 2024

WGPU enable/disable fixed.
However some shader-examples not working on wasm32 yet (cube, triangle, mrt, blend...) #22
and warnings linker, debug only.

@kassane
Copy link
Owner Author

kassane commented May 26, 2024

About mini Wasm D-runtime

Currently official D-runtime doesn't have a wasm port. Therefore, object.d(runtime entrypoint) would need to be rewritten or adapted (from the same compiler version) to provide minimal/basic support for Druntime ( it doesn't need to be fully GC).
My fork is based on another fork (custom), but it is out of date (ldc version 1.36.0).

sokol-d/build.zig.zon

Lines 18 to 21 in 771d29d

.wasmd = .{
.url = "git+https://github.com/kassane/wasmd#067e21e29aea24ec936d6c6b859f7c9a79894f78",
.hash = "122006f8e097d5bd627f26d2aa3b397d92b400c786f13396c47afed66fed1e8ef2c1",
},

user_data(Wasm w/ Drt-gc [AA])

image

References

* fix includes & package path
* some fixes for wasm target
* fix sokol_backend
* switch build (dub or zig only)
* fix clear example for wasm32 (no stdout)
@kassane
Copy link
Owner Author

kassane commented May 31, 2024

This PR is superset.
I will leave the additional correction for wasm32 or imgui support later in new PR's.

@kassane kassane merged commit 3e4bfe1 into main May 31, 2024
3 checks passed
@kassane kassane deleted the v0.13.0-master branch May 31, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix fixing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zig head version breaks build.zig.
2 participants