Skip to content

tools: fix redundant conditions in v8.gyp for riscv64 and loong64#62608

Open
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:fix-redundant-gyp-conditions
Open

tools: fix redundant conditions in v8.gyp for riscv64 and loong64#62608
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:fix-redundant-gyp-conditions

Conversation

@JamieMagee
Copy link
Copy Markdown

@JamieMagee JamieMagee commented Apr 5, 2026

The builtins conditions for riscv64 and loong64 both read v8_target_arch=="X" or v8_target_arch=="X". The same value on both sides of the or. This was copied from the mips64 or mips64el pattern when riscv64 (#37980) and loong64 support were first added, but those are two different architectures and riscv64/loong64 each only have one.

Simplify both to plain v8_target_arch=="riscv64" / v8_target_arch=="loong64", matching ppc64, s390x, and the other single-variant architectures.

The builtins conditions for riscv64 and loong64 both have the form
'v8_target_arch=="X" or v8_target_arch=="X"' which is redundant.
This was copied from the mips64/mips64el pattern (where the 'or' is
correct since those are two different architectures) when riscv64
and loong64 support were first added.

Simplify both to match the pattern used by ppc64, s390x, and other
single-variant architectures.

Signed-off-by: Jamie Magee <jamie.magee@gmail.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/v8-update

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency. labels Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants