Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Correct the removal of -Wstrict-prototypes from compiler flags. #12093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ def __init__(self, dist):


class BuildExtraLibraries(BuildExtCommand):
def run(self):
# Remove the -Wstrict-prototypes option, it's not valid for C++.
def build_extensions(self):
# Remove the -Wstrict-prototypes option, it's not valid for C++. Fixed
# in Py3.7 as bpo-5755.
try:
self.compiler.compiler_so.remove('-Wstrict-prototypes')
except (ValueError, AttributeError):
pass
for package in good_packages:
package.do_custom_build()
return BuildExtCommand.run(self)
return super().build_extensions()


cmdclass = versioneer.get_cmdclass()
Expand Down