-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add minimum macosx version #22240
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
Add minimum macosx version #22240
Conversation
Probably should set the deployment target in cibuildwheel. |
setupext.py
Outdated
ext.extra_compile_args.extend(['-Werror', '-mmacosx-version-min=10.12']) | ||
ext.extra_link_args.extend(['-framework', 'Cocoa', '-mmacosx-version-min=10.12']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need this? I think the environment variable MACOSX_DEPLOYMENT_TARGET
should be used instead, which you already have defined above. This says they are synonymous, and more importantly that this flag is actually a gcc flag that clang supports for now, but potentially not into the future.
https://stackoverflow.com/questions/25352389/what-is-the-difference-between-macosx-deployment-target-and-mmacosx-version-min
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed this change from my latest commit to see if it's needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out we didn't need this - builds seem to be fine with just the environment variable set.
191cf36
to
152e9c7
Compare
This is a draft to see if we can specify the macosx minimum version to be higher to fix wheel building. See #22179 (comment) for details on why the wheels are currently failing.
As per #18128 (comment) and other discussion on that issue I've set the minimum version to 10.12.
Fixes #18066