Set OSX minimum supported version#1092
Conversation
|
I've tested this change also builds ok for arm64 (on an intel machine) although I don't have anything I can actually run the arm64 version on. |
|
Well this looks beautiful! @vespakoen what do you think? @phkahler should we rebuild the 3.0 macOS binaries? Or maybe make a 3.1? A nontrivial amount of improvements for all platforms has accumulated since 3.0. |
|
@ruevs I was thinking about a 3.1 maybe by the end of the year, but fixing the mac issues may warrant doing it sooner. The other big thing IMHO would be getting the releases to include all source in the zip - including dependencies? |
|
Looks good to me, I guess this will also work on arm64, i'll test it out when I get the chance. |
|
@tomsci you chose 10.12, because that was the oldest you could test on I presume? Because it looks to me that we should run fine on 10.8 (the oldest x64 only version), maybe even 64bit 10.7? https://en.wikipedia.org/wiki/MacOS#Release_history Theoretically I could test on 10.8 if I install it on my 2008 MacBook Pro... but that would be quite an undertaking - the machine has not been used in 10+ years and is on 32bit 10.6 :-) |
|
Yep 10.12 is the only thing I had lying around. My recollection was 10.13 dropped a bunch of hardware support so 10.12 was a good reference point that more machines would be capable of upgrading to, but wikipedia doesn't seem to agree. The 10.12 machine I have here isn't being offered any further updates but maybe there are other reasons for that... We might start seeing more critical missing functionality, and have to spend time finding workarounds, if we go back too far. In any case 10.12 support is a step in the right direction and exceeds what the reporter was originally asking for :) |
|
@ruevs rebuilding the 3.0 mac binaries might be a good idea. Not sure how to go about that :-) |
@tomsci @ruevs, It would cool to support as oldest OS/hardware/platforms, as possible. Please, at least try do that ;-)
@phkahler, I think actually there are a lot of new features & bugfixes for release Also It would be cool to add |
Agreed, but you know what they say - if you don't test something, it doesn't exist. Given the vast amount of churn that goes on in macOS dev environments I'd rather not promise support that I haven't verified actually works :) I've not sure how far back the current Xcode 12.5 toolchain even can build for - it's not guaranteed that the answer is infinitely far back, Apple happily drop support for stuff like that according to their own schedules. 10.12 is already 5 years old, not a patch on Windows compat but still pretty good for macOS. But if someone with more old macs (and time) than me wants to test it, hopefully this PR provides a place to start. |
@tomsci, I will try find testers ;) |
As per cmake docs this is how you configure
-mmacosx-version-minin cmake land.To my surprise this is all that was needed to get a binary compiled on 11.5.1 to launch on 10.12.6, which is as far back as I can test. 10.12.6 is supported on macs at least as far back as mid 2012.
Fixes #1086.
It did cause some build warnings from libomp:
But again to my surprise this didn't seem to actually cause any problems (although different/future libomp versions may behave differently). In my very limited testing this change doesn't appear to have any noticeable impact when running on recent macOS versions.
cc @ruevs