Skip to content

Commit

Permalink
fix: cannot pass linker options to clang
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Aug 16, 2021
1 parent a754416 commit b8ea5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _build_linkopt(self):
if self.linkopt is None or len(self.linkopt) == 0:
return []

return ['--linkopt="{}"'.format(' '.join(self.linkopt))]
return ['--linkopt={}'.format(l) for l in self.linkopt]

def _build_opencv_switch(self):
commands = [f'--@opencv//:switch={self.opencv}']
Expand Down

0 comments on commit b8ea5c1

Please sign in to comment.