Skip to content

Commit

Permalink
dynamiclb
Browse files Browse the repository at this point in the history
  • Loading branch information
FIRST_NAME LAST_NAME authored and FIRST_NAME LAST_NAME committed Jul 16, 2023
1 parent bf9355a commit 532828b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
StorageClass,
TranslationUnit,
TypeKind,

Config,
)

from .model import *
Expand Down Expand Up @@ -97,6 +97,9 @@ def output_all(self, out):
self._output_module(self.root_module, out)

def parse(self, filenames, flags):
# flags will have an item like -L=libclang_path
Lindex = [i for i, x in enumerate(flags) if x.startswith('-L=')]
Config.set_library_path(flags[Lindex].split('=')[1])
abs_filenames = [os.path.abspath(f) for f in filenames]
self.filenames.update(abs_filenames)

Expand Down
2 changes: 2 additions & 0 deletions src/robloxpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ def incli():
'-std=%s' % getconfig("c", "std")
] + [
'-stdlib=%s' % getconfig("c", "stdlib")
] + [
'-L=%s' % getconfig("c", "dynamiclibpath")
]
)

Expand Down

0 comments on commit 532828b

Please sign in to comment.