Skip to content

build: replace the simdutf chromium patch with an electron-side include shim - #52958

Closed
codebytere wants to merge 1 commit into
mainfrom
drop-simdutf-patch
Closed

build: replace the simdutf chromium patch with an electron-side include shim#52958
codebytere wants to merge 1 commit into
mainfrom
drop-simdutf-patch

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Node.js and Chromium both vendor simdutf, so we build only Chromium's copy and point Node's GN build at it via node_simdutf_path. Node's sources include it as "simdutf.h" though, and //third_party/simdutf doesn't put its own directory on the include path, so we've been carrying a Chromium patch that adds a public config for that. Upstream declined the equivalent CL (https://chromium-review.googlesource.com/c/chromium/src/+/6642977).

Node only ever uses node_simdutf_path as a dep label, so this points it at a small //electron/build/simdutf group that re-exports //third_party/simdutf with the include dir attached, and deletes the patch. We still build a single copy of simdutf.

Checklist

Release Notes

Notes: none

Node.js sources include simdutf as "simdutf.h", but Chromium's
//third_party/simdutf target only supports the fully-qualified path and
upstream declined adding a public include-dir config for us
(https://chromium-review.googlesource.com/c/chromium/src/+/6642977).

Node's GN build already lets embedders relocate simdutf via
node_simdutf_path and only ever uses it as a dep label, so point it at
//electron/build/simdutf: a group that re-exports //third_party/simdutf
with its directory on the include path. Same single copy of simdutf, no
patch on either side.
@codebytere
codebytere requested a review from a team as a code owner August 18, 2026 14:03
@codebytere codebytere added semver/none target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 18, 2026
@codebytere

Copy link
Copy Markdown
Member Author

Actually closing in favor of nodejs/node#65382, we can delete then.

@codebytere codebytere closed this Aug 18, 2026
@codebytere
codebytere deleted the drop-simdutf-patch branch August 18, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant