|
140 | 140 | 'actions': [ |
141 | 141 | { |
142 | 142 | 'action_name': 'preprocess_win64_intel_asm', |
| 143 | + 'process_outputs_as_sources': 1, |
143 | 144 | 'inputs': [ |
144 | 145 | 'preprocess_asm.py', |
145 | 146 | 'include/ffi_cfi.h', |
|
149 | 150 | '<(INTERMEDIATE_DIR)/fficonfig.h', |
150 | 151 | ], |
151 | 152 | 'outputs': [ |
152 | | - '<(INTERMEDIATE_DIR)/win64_intel.pre.asm', |
| 153 | + '<(INTERMEDIATE_DIR)/win64_intel.asm', |
153 | 154 | ], |
154 | 155 | 'action': [ |
155 | 156 | '<(python)', |
|
166 | 167 | 'FFI_STATIC_BUILD', |
167 | 168 | ], |
168 | 169 | }, |
169 | | - { |
170 | | - 'action_name': 'sanitize_win64_intel_asm', |
171 | | - 'process_outputs_as_sources': 1, |
172 | | - 'inputs': [ |
173 | | - 'sanitize-asm.py', |
174 | | - '<(INTERMEDIATE_DIR)/win64_intel.pre.asm', |
175 | | - ], |
176 | | - 'outputs': [ |
177 | | - '<(INTERMEDIATE_DIR)/win64_intel.asm', |
178 | | - ], |
179 | | - 'action': [ |
180 | | - '<(python)', |
181 | | - 'sanitize-asm.py', |
182 | | - '--input', |
183 | | - '<(INTERMEDIATE_DIR)/win64_intel.pre.asm', |
184 | | - '--output', |
185 | | - '<@(_outputs)', |
186 | | - ], |
187 | | - }, |
188 | 170 | ], |
189 | 171 | }], |
190 | 172 | ['OS == "win" and target_arch == "arm64"', { |
191 | 173 | 'actions': [ |
192 | 174 | { |
193 | | - 'action_name': 'preprocess_win64_arm_asm', |
| 175 | + 'action_name': 'preprocess_win64_arm_asm_with_cl', |
| 176 | + 'process_outputs_as_sources': 1, |
194 | 177 | 'inputs': [ |
195 | | - 'preprocess_asm.py', |
196 | 178 | 'include/ffi_cfi.h', |
197 | 179 | 'src/aarch64/internal.h', |
198 | 180 | 'src/aarch64/win64_armasm.S', |
199 | 181 | '<(INTERMEDIATE_DIR)/ffi.h', |
200 | 182 | '<(INTERMEDIATE_DIR)/fficonfig.h', |
201 | 183 | ], |
202 | | - 'outputs': [ |
203 | | - '<(INTERMEDIATE_DIR)/win64_armasm.i', |
204 | | - ], |
205 | | - 'action': [ |
206 | | - '<(python)', |
207 | | - 'preprocess_asm.py', |
208 | | - '--input', |
209 | | - 'src/aarch64/win64_armasm.S', |
210 | | - '--output', |
211 | | - '<@(_outputs)', |
212 | | - '--include-dir', |
213 | | - 'include', |
214 | | - '--include-dir', |
215 | | - 'src/aarch64', |
216 | | - '--define', |
217 | | - 'FFI_STATIC_BUILD', |
218 | | - ], |
219 | | - }, |
220 | | - { |
221 | | - 'action_name': 'sanitize_win64_arm_asm', |
222 | | - 'process_outputs_as_sources': 1, |
223 | | - 'inputs': [ |
224 | | - 'sanitize-asm.py', |
225 | | - '<(INTERMEDIATE_DIR)/win64_armasm.i', |
226 | | - ], |
227 | 184 | 'outputs': [ |
228 | 185 | '<(INTERMEDIATE_DIR)/win64_armasm.asm', |
229 | 186 | ], |
230 | 187 | 'action': [ |
231 | | - '<(python)', |
232 | | - 'sanitize-asm.py', |
233 | | - '--input', |
234 | | - '<(INTERMEDIATE_DIR)/win64_armasm.i', |
235 | | - '--output', |
236 | | - '<@(_outputs)', |
| 188 | + 'cmd.exe', |
| 189 | + '/d', |
| 190 | + '/s', |
| 191 | + '/c', |
| 192 | + '"cl.exe /nologo /EP /TC /Iinclude /Isrc\\aarch64 /I<(INTERMEDIATE_DIR) /DFFI_STATIC_BUILD src\\aarch64\\win64_armasm.S > <(INTERMEDIATE_DIR)\\win64_armasm.asm"', |
237 | 193 | ], |
238 | 194 | }, |
239 | 195 | ], |
|
0 commit comments