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:
Jay Soffian 2020-10-13 18:20:10 -04:00 committed by GitHub
parent 2a263e087c
commit 01453b05c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):