Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: fix build on Windows
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
  • Loading branch information
ShogunPanda committed Apr 11, 2026
commit bb30b891bd87072c2fc31004533c96cad372355d
35 changes: 34 additions & 1 deletion deps/libffi/libffi.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
'variables': {
'libffi_arch_sources': [
'src/aarch64/ffi.c',
'src/aarch64/win64_armasm.S',
],
},
}],
Expand Down Expand Up @@ -170,6 +169,40 @@
},
],
}],
['OS == "win" and target_arch == "arm64"', {
'actions': [
{
'action_name': 'preprocess_win64_arm_asm',
'process_outputs_as_sources': 1,
'inputs': [
'preprocess_asm.py',
'include/ffi_cfi.h',
'src/aarch64/internal.h',
'src/aarch64/ksarm64.h',
'src/aarch64/win64_armasm.S',
'<(INTERMEDIATE_DIR)/ffi.h',
'<(INTERMEDIATE_DIR)/fficonfig.h',
],
'outputs': [
'<(INTERMEDIATE_DIR)/win64_armasm.asm',
],
'action': [
'<(python)',
'preprocess_asm.py',
'--input',
'src/aarch64/win64_armasm.S',
'--output',
'<@(_outputs)',
'--include-dir',
'include',
'--include-dir',
'src/aarch64',
'--define',
'FFI_STATIC_BUILD',
],
},
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
Expand Down