From 72a16ba9ad3a8c6ea1a9d25895a90b2749085c4c Mon Sep 17 00:00:00 2001 From: watkinspd Date: Mon, 30 Mar 2026 21:58:30 -0700 Subject: [PATCH] fix: use absolute paths in libffi.gyp for Windows build The preprocess_asm action uses relative paths for the command, include directory, and config directory. When node-gyp runs the build, the working directory is the project root, not deps/libffi/, so these paths don't resolve on Windows. Use <(module_root_dir)/deps/libffi/ prefix for all three paths to make them work regardless of working directory. Co-Authored-By: Claude Opus 4.6 (1M context) --- deps/libffi/libffi.gyp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deps/libffi/libffi.gyp b/deps/libffi/libffi.gyp index d02bef73..da592f50 100644 --- a/deps/libffi/libffi.gyp +++ b/deps/libffi/libffi.gyp @@ -74,10 +74,9 @@ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).asm', ], 'action': [ - 'call', - 'preprocess_asm.cmd', - 'include', - 'config/<(OS)/<(target_arch)', + '<(module_root_dir)/deps/libffi/preprocess_asm.cmd', + '<(module_root_dir)/deps/libffi/include', + '<(module_root_dir)/deps/libffi/config/<(OS)/<(target_arch)', '<(RULE_INPUT_PATH)', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).asm', ],