Skip to content

chore(🧹): remove what the in-repo Dawn build left behind - #610

Merged
wcandillon merged 1 commit into
mainfrom
chore/dawn-build-leftovers
Nov 4, 2026
Merged

wcandillon merged 1 commit into
mainfrom
chore/dawn-build-leftovers

Conversation

@wcandillon

Copy link
Copy Markdown
Owner

Dawn has been built by react-native-skia and consumed through the react-native-webgpu-dawn package since #507, and the C++ codegen went in #424. This removes what those changes left behind, and adds a guard for the one leftover that can bite.

Removed

Guard against stale header copies

Until #507 the build copied Dawn's headers into cpp/webgpu and cpp/dawn. Every source includes "webgpu/webgpu_cpp.h", and both the podspec HEADER_SEARCH_PATHS and android/CMakeLists.txt list cpp before the package's include directory, so a copy left over from that build silently wins over the headers the binaries were built from. A checkout that had run the old build still had such a copy, differing from the 157.1.0 headers by thousands of lines, hidden by the ignore rules.

scripts/check-dawn.ts (run by the setup action after yarn install) now fails when cpp/webgpu or anything other than cpp/dawn/common exists, naming the directories to delete. Dropping the ignore rules makes such copies show up as untracked files as well.

Kept on purpose

check-dawn.ts and check-apple-sdks.sh are live. cpp/dawn/common/ExternalTextureParams.h is vendored by design and tracked by the Dawn check. The dawn field in package.json is read by Package.swift for the Skia 3.0.x Graphite compatibility check.

Dawn comes from react-native-webgpu-dawn since #507 and the codegen went
in #424. Drop the gitignore rules, cpplint excludes and devDependencies
that only served them, and make check-dawn fail on header copies left
over from the old build: they sit before the package's include directory
on every include path and silently shadow the headers the binaries were
built from.
@wcandillon
wcandillon merged commit 22c62e5 into main Nov 4, 2026
7 checks passed
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.21.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant