Skip to content

build: enable Maglev for riscv64#62605

Open
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:riscv64-enable-maglev
Open

build: enable Maglev for riscv64#62605
JamieMagee wants to merge 1 commit intonodejs:mainfrom
JamieMagee:riscv64-enable-maglev

Conversation

@JamieMagee
Copy link
Copy Markdown

V8's BUILD.gn has listed riscv64 as a Maglev-supported architecture since V8 14.0, and the source files exist in deps/v8/src/maglev/riscv/. But Node.js never wired it up on its side:

  • configure.py didn't include riscv64 in maglev_enabled_architectures
  • tools/v8_gypfiles/v8.gyp had no GN-scraper conditions for riscv64 in the two Maglev source blocks (it had arm, arm64, x64, s390x, ppc64, just not riscv64)

This adds riscv64 to both, following the same approach as #60863 which did this for s390x.

Refs: nodejs/build#4099

V8's Maglev compiler has supported riscv64 since V8 14.0 (with full
source files in deps/v8/src/maglev/riscv/), but Node.js never wired
it up:

- configure.py excluded riscv64 from maglev_enabled_architectures
- tools/v8_gypfiles/v8.gyp lacked GN-scraper conditions for riscv64
  Maglev sources in both the v8_internal_headers and
  v8_base_without_compiler blocks

This adds riscv64 to both, following the same pattern used for s390x
in nodejs#60863 and matching V8's own BUILD.gn which already lists riscv64
alongside arm, arm64, x64, s390x, and ppc64 as Maglev-enabled
architectures.

Refs: nodejs/build#4099
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 build Issues and PRs related to build files or the CI. 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

build Issues and PRs related to build files or the CI. 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.

2 participants