File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 17
17
StorageClass ,
18
18
TranslationUnit ,
19
19
TypeKind ,
20
-
20
+ Config ,
21
21
)
22
22
23
23
from .model import *
@@ -97,6 +97,9 @@ def output_all(self, out):
97
97
self ._output_module (self .root_module , out )
98
98
99
99
def parse (self , filenames , flags ):
100
+ # flags will have an item like -L=libclang_path
101
+ Lindex = [i for i , x in enumerate (flags ) if x .startswith ('-L=' )]
102
+ Config .set_library_path (flags [Lindex ].split ('=' )[1 ])
100
103
abs_filenames = [os .path .abspath (f ) for f in filenames ]
101
104
self .filenames .update (abs_filenames )
102
105
Original file line number Diff line number Diff line change @@ -290,6 +290,8 @@ def incli():
290
290
'-std=%s' % getconfig ("c" , "std" )
291
291
] + [
292
292
'-stdlib=%s' % getconfig ("c" , "stdlib" )
293
+ ] + [
294
+ '-L=%s' % getconfig ("c" , "dynamiclibpath" )
293
295
]
294
296
)
295
297
You can’t perform that action at this time.
0 commit comments