File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 200200 '<(INTERMEDIATE_DIR)/fficonfig.h' ,
201201 ],
202202 'outputs' : [
203- '<(INTERMEDIATE_DIR)/win64_armasm.pre.asm ' ,
203+ '<(INTERMEDIATE_DIR)/win64_armasm.i ' ,
204204 ],
205205 'action' : [
206206 '<(python)' ,
222222 'process_outputs_as_sources' : 1 ,
223223 'inputs' : [
224224 'sanitize-asm.py' ,
225- '<(INTERMEDIATE_DIR)/win64_armasm.pre.asm ' ,
225+ '<(INTERMEDIATE_DIR)/win64_armasm.i ' ,
226226 ],
227227 'outputs' : [
228228 '<(INTERMEDIATE_DIR)/win64_armasm.asm' ,
231231 '<(python)' ,
232232 'sanitize-asm.py' ,
233233 '--input' ,
234- '<(INTERMEDIATE_DIR)/win64_armasm.pre.asm ' ,
234+ '<(INTERMEDIATE_DIR)/win64_armasm.i ' ,
235235 '--output' ,
236236 '<@(_outputs)' ,
237237 ],
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
33import argparse
4+ import re
45from pathlib import Path
56
67
78def normalize_path (value ):
89 return str (value ).strip ().strip ('"' )
910
1011
12+ DIRECTIVE_PREFIX = re .compile (r'^\s*\ufeff?#' )
13+
14+
1115def sanitize_asm (input_path , output_path ):
1216 source = Path (normalize_path (input_path )).read_text (encoding = 'utf-8' )
1317 lines = []
1418 for line in source .splitlines (keepends = True ):
15- if line . lstrip (). startswith ( '#' ):
19+ if DIRECTIVE_PREFIX . match ( line ):
1620 continue
1721 lines .append (line )
1822
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ symlinkJoin (finalAttrs: {
5656 configureFlags = [
5757 "--without-lief"
5858 "--without-sqlite"
59+ "--without-ffi"
5960 "--without-ssl"
6061 ]
6162 ++ ( lib . concatMap ( sharedLibName : [
You can’t perform that action at this time.
0 commit comments