Skip to content

deps: add missing static linking targets for libffi#63168

Open
ShogunPanda wants to merge 3 commits intonodejs:mainfrom
ShogunPanda:ffi-missing-static-archs
Open

deps: add missing static linking targets for libffi#63168
ShogunPanda wants to merge 3 commits intonodejs:mainfrom
ShogunPanda:ffi-missing-static-archs

Conversation

@ShogunPanda
Copy link
Copy Markdown
Contributor

This ensures static linking of libffi wherever it is supported.

Signed-off-by: Paolo Insogna <paolo@cowtech.it>
@ShogunPanda ShogunPanda requested review from addaleax, bengl and mcollina May 7, 2026 13:20
@ShogunPanda ShogunPanda added the ffi Issues and PRs related to experimental Foreign Function Interface support. label May 7, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/ffi
  • @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. labels May 7, 2026
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Signed-off-by: Paolo Insogna <paolo@cowtech.it>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.03%. Comparing base (b5da751) to head (2f89df2).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63168      +/-   ##
==========================================
- Coverage   90.03%   90.03%   -0.01%     
==========================================
  Files         713      713              
  Lines      224510   224699     +189     
  Branches    42438    42478      +40     
==========================================
+ Hits       202148   202310     +162     
- Misses      14163    14172       +9     
- Partials     8199     8217      +18     

see 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread doc/api/ffi.md
Comment on lines +33 to +36
Bundled libffi support is available on all Node.js supported platforms where
libffi provides a compatible static backend. Targets not supported by bundled
libffi require building Node.js against a shared libffi with `--shared-ffi`.
The unofficial GN build does not support `node:ffi`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Bundled libffi support is available on all Node.js supported platforms where
libffi provides a compatible static backend. Targets not supported by bundled
libffi require building Node.js against a shared libffi with `--shared-ffi`.
The unofficial GN build does not support `node:ffi`.
Building Node.js with `node:ffi` support is available via the bundled `libffi` on
platforms where `libffi` provides a compatible static backend, or via a
shared `libffi` using the `--shared-ffi` configure flag.
The unofficial GN build does not support `node:ffi`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be upstreamed?

Signed-off-by: Paolo Insogna <paolo@cowtech.it>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

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. ffi Issues and PRs related to experimental Foreign Function Interface support. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants