Skip to content

Commit 2587eef

Browse files
committed
deps: fix build on Windows
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
1 parent 1a94b94 commit 2587eef

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

deps/libffi/libffi.gyp

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
'variables': {
3535
'libffi_arch_sources': [
3636
'src/aarch64/ffi.c',
37-
'src/aarch64/win64_armasm.S',
3837
],
3938
},
4039
}],
@@ -170,6 +169,40 @@
170169
},
171170
],
172171
}],
172+
['OS == "win" and target_arch == "arm64"', {
173+
'actions': [
174+
{
175+
'action_name': 'preprocess_win64_arm_asm',
176+
'process_outputs_as_sources': 1,
177+
'inputs': [
178+
'preprocess_asm.py',
179+
'include/ffi_cfi.h',
180+
'src/aarch64/internal.h',
181+
'src/aarch64/ksarm64.h',
182+
'src/aarch64/win64_armasm.S',
183+
'<(INTERMEDIATE_DIR)/ffi.h',
184+
'<(INTERMEDIATE_DIR)/fficonfig.h',
185+
],
186+
'outputs': [
187+
'<(INTERMEDIATE_DIR)/win64_armasm.asm',
188+
],
189+
'action': [
190+
'<(python)',
191+
'preprocess_asm.py',
192+
'--input',
193+
'src/aarch64/win64_armasm.S',
194+
'--output',
195+
'<@(_outputs)',
196+
'--include-dir',
197+
'include',
198+
'--include-dir',
199+
'src/aarch64',
200+
'--define',
201+
'FFI_STATIC_BUILD',
202+
],
203+
},
204+
],
205+
}],
173206
],
174207
'direct_dependent_settings': {
175208
'include_dirs': [

0 commit comments

Comments
 (0)