Skip to content

Commit 532828b

Browse files
FIRST_NAME LAST_NAMEFIRST_NAME LAST_NAME
authored andcommitted
dynamiclb
1 parent bf9355a commit 532828b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
StorageClass,
1818
TranslationUnit,
1919
TypeKind,
20-
20+
Config,
2121
)
2222

2323
from .model import *
@@ -97,6 +97,9 @@ def output_all(self, out):
9797
self._output_module(self.root_module, out)
9898

9999
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])
100103
abs_filenames = [os.path.abspath(f) for f in filenames]
101104
self.filenames.update(abs_filenames)
102105

src/robloxpy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ def incli():
290290
'-std=%s' % getconfig("c", "std")
291291
] + [
292292
'-stdlib=%s' % getconfig("c", "stdlib")
293+
] + [
294+
'-L=%s' % getconfig("c", "dynamiclibpath")
293295
]
294296
)
295297

0 commit comments

Comments
 (0)