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

Skip to content

Commit 13fe458

Browse files
committed
ENH: Add version check for mac sdk version
This specifically lists the macOS SDK version (currently 10.11) needed to build the osx backend. It also turns on compiler warnings for when code uses features newer than the minimum version (and makes warnings errors for this file).
1 parent f782a82 commit 13fe458

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setupext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ def get_extensions(self):
657657
'src/_macosx.m'
658658
]
659659
ext = Extension('matplotlib.backends._macosx', sources)
660+
ext.extra_compile_args.extend(['-mmacosx-version-min=10.9',
661+
'-Wunguarded-availability', '-Werror'])
660662
ext.extra_link_args.extend(['-framework', 'Cocoa'])
661663
if platform.python_implementation().lower() == 'pypy':
662664
ext.extra_compile_args.append('-DPYPY=1')

0 commit comments

Comments
 (0)