Skip to content

it works for me on node-v22.2.0#281

Open
bmatusiak wants to merge 3 commits intonode-ffi-napi:masterfrom
bmatusiak:node22.2.0
Open

it works for me on node-v22.2.0#281
bmatusiak wants to merge 3 commits intonode-ffi-napi:masterfrom
bmatusiak:node22.2.0

Conversation

@bmatusiak
Copy link
Copy Markdown

i see other people having issues building for newer versions of node..

these are the changes need to build, tested v22.2.0

also had to fix another plugin get-uv-event-loop-napi-h as seen in the link below

node-ffi-napi/get-uv-event-loop-napi-h@master...bmatusiak:get-uv-event-loop-napi-h:master

@cclauss
Copy link
Copy Markdown

cclauss commented Aug 16, 2024

Unfortunately, the last merged commit to this repo was two years ago.

@bmatusiak
Copy link
Copy Markdown
Author

Unfortunately, the last merged commit to this repo was two years ago.

yup, but for anyone who still uses this project, could find this PR, to maintain legacy stuff

cheers

urbanogilson added a commit to napi-ffi/node-ffi-napi that referenced this pull request Apr 4, 2026
* Bump version to 4.0.5

Upstream fixes present:
- libffi.gyp: correct preprocess_asm.cmd path for Windows (node-ffi-napi#293, node-ffi-napi#265)
- src/ffi.cc: remove NAPI_EXPERIMENTAL define (node-ffi-napi#283)
- node-gyp-build bumped to ^4.8.2, prebuildify to ^6.0.1 (node-ffi-napi#283)
- Supported on node 22 (Linux/Mac/Windows/Mingw) node-ffi-napi#281 node-ffi-napi#270


* Add MinGW (MSYS2 MINGW64) build and test job

Uses MSYS2's own Node.js package so os.type() returns MINGW64_NT-*,
which activates the MinGW code path in libffi.gyp (GCC compiles .S
files directly instead of the MSVC preprocess_asm.cmd route).

* Improve MSYS2 detection

* Use MSYSTEM_PREFIX to detect MSYS2 toolchain instead of MSYSTEM

* Skip uv_fs_open symbol check on MinGW/MSYS2 Windows builds

On MSYS2 MinGW nodes, libuv is not necessarily re-exported from the
node binary, so GetProcAddress("uv_fs_open") returns error 127. The
test still verifies that Library(null, {}) succeeds on MinGW; only the
MSVC-specific symbol export assumption is skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants