Skip to content

fix(native): build without macOS WebGPU callbacks - #620

Merged
Ernxst merged 2 commits into
mainfrom
codex/fix-webgpu-non-macos-build
Sep 22, 2026
Merged

Ernxst merged 2 commits into
mainfrom
codex/fix-webgpu-non-macos-build

Conversation

@Ernxst

@Ernxst Ernxst commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Harness: Codex
Agent: none
Model: gpt-6-astra

Task statements
  1. Fix the non-macOS native build regression from feat(native): add experimental macOS WebGPU foundation #525, regenerate declarations, verify native and React builds, and open a PR against main. (Working-directory and workflow instructions omitted.)

The macOS WebGPU transport is now registered only on macOS. Linux and Windows builds no longer ask N-API to register callbacks whose implementations were compiled out. The direct WebGPU benchmark examples also report that they are macOS-only instead of compiling against unavailable dependencies.

The React transport treats the submission method as optional. When a platform does not export it, canvas.getContext("webgpu") returns null.

CI Linux check Result
main E0425 for the cfg-removed create_web_gpu_*_c_callback functions
This branch Completes RUST_FONTCONFIG_DLOPEN=1 cargo check --target x86_64-unknown-linux-gnu --no-default-features --all-targets

Windows is not cross-compilable from this Mac without its SDK. The PR's Linux CI job is the failed check that verifies the fix, and the requested cross-platform run will cover Windows natively.

The change only affects the experimental WebGPU canvas transport off macOS. Reverting the commit restores the previous platform surface; no stored data changes.

@Ernxst Ernxst self-assigned this Sep 22, 2026
@Ernxst
Ernxst merged commit cb8193d into main Sep 22, 2026
9 of 10 checks passed
@Ernxst
Ernxst deleted the codex/fix-webgpu-non-macos-build branch September 23, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant