Commit 01453b05 by Jay Soffian Committed by GitHub

fix (setup_helpers): fix bug in _add_lflags (#2586)

Fix minor bug in `_add_lflags` that allows a flag to be added more than once.
parent 2a263e08
......@@ -99,7 +99,7 @@ class Pybind11Extension(_Extension):
def _add_lflags(self, *flags):
for flag in flags:
if flag not in self.extra_compile_args:
if flag not in self.extra_link_args:
self.extra_link_args.append(flag)
def __init__(self, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment