mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
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.
This commit is contained in:
parent
2a263e087c
commit
01453b05c4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user