Skip to content

build: add simdutf dir to include path in GN build - #65382

Open
codebytere wants to merge 1 commit into
nodejs:mainfrom
codebytere:build-gn-simdutf-include
Open

build: add simdutf dir to include path in GN build#65382
codebytere wants to merge 1 commit into
nodejs:mainfrom
codebytere:build-gn-simdutf-include

Conversation

@codebytere

@codebytere codebytere commented Aug 18, 2026

Copy link
Copy Markdown
Member

The GN build defaults node_simdutf_path to //third_party/simdutf, the copy that ships in a Chromium checkout. That target doesn't put its own directory on the include path (Chromium code includes it as third_party/simdutf/simdutf.h), so the unqualified #include "simdutf.h" in libnode, node_js2c and node_cctest doesn't resolve unless the embedder adds the directory themselves.

This adds get_label_info(node_simdutf_path, "dir") to node_internal_config, which libnode and node_cctest already use, and to node_js2c's include_dirs. get_label_info rather than the raw string so a value like //foo/bar:simdutf still resolves to a directory.

There's no GN CI in this repo; i checked this in an embedder build.


Disclosure: the code and this description were written by Claude Code, directed and reviewed by @codebytere.

@codebytere
codebytere requested a review from anonrig August 18, 2026 14:15
The GN build defaults `node_simdutf_path` to `//third_party/simdutf`,
the copy that ships in a Chromium checkout. That target doesn't put
its own directory on the include path, so the unqualified
`#include "simdutf.h"` in libnode, node_js2c and node_cctest doesn't
resolve unless the embedder adds the directory themselves.

Add `get_label_info(node_simdutf_path, "dir")` to `node_internal_config`
(used by libnode and node_cctest) and to node_js2c's `include_dirs`.

Signed-off-by: Shelley Vohr <shelley.vohr@gmail.com>
@codebytere
codebytere force-pushed the build-gn-simdutf-include branch from 64cd05c to 857e40c Compare August 18, 2026 14:48
@codebytere codebytere added embedding Issues and PRs related to embedding Node.js in another project. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 18, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codebytere codebytere added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue Add this label to land a pull request using GitHub Actions. embedding Issues and PRs related to embedding Node.js in another project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants