Skip to content

Support OpenSSL assembly for RISC-V compilation#63870

Open
wanghan-sanechips wants to merge 1 commit into
nodejs:v22.x-stagingfrom
wanghan-sanechips:v22.21.1-riscv
Open

Support OpenSSL assembly for RISC-V compilation#63870
wanghan-sanechips wants to merge 1 commit into
nodejs:v22.x-stagingfrom
wanghan-sanechips:v22.21.1-riscv

Conversation

@wanghan-sanechips

Copy link
Copy Markdown

This PR introduces complete RISC-V 64 (riscv64) architecture support for Node.js, enabling it to compile and run on RISC-V platforms with optimized performance.

Key Changes

  • Added platform detection for riscv64 in the build system.
  • Integrated an updated version of OpenSSL that includes RISC-V assembly optimizations (e.g., for AES, SHA, and other cryptographic operations).
  • Verified compatibility with the node-v22.21.1 codebase.

Motivation

As the RISC-V ecosystem continues to grow, it's necessary to support Node.js running on RISC-V platforms. This PR adds RISC-V support with OpenSSL assembly optimizations to deliver better performance.

Test

Successfully compiled and ran basic tests on a RISC-V 64 platform.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. openssl Issues and PRs related to the OpenSSL dependency. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch. labels Jun 12, 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. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. openssl Issues and PRs related to the OpenSSL dependency. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants