Do I understand it correctly that plan9port is supported on macOS 10.14+, but not on macOS 10.13?
I had no trouble compiling the code on the machine using MacOS SDK 10.14, but I did have trouble running acme due to devdraw complaining about setAllowGPUOptimizedContents not being available on macOS 10.13:
acme[26010:742070] *** Terminating app due to uncaught exception 'NS
InvalidArgumentException', reason: '-[MTLTextureDescriptorInternal setAllowGPUOptimizedContents:]: unrecognized selector sent to instance 0x100410c60'
Indeed, this property is available on macOS 10.14+:https://developer.apple.com/documentation/metal/mtltexturedescriptor/2966641-allowgpuoptimizedcontents
Availability: macOS 10.14+
I did try wrapping it in the @available macro, but this revealed more incompatibility issues with the following methods:
mac-screen.m:714:22: warning: 'convertPointToBacking:' is only available on macOS 10_14 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:445:1: note: 'convertPointToBacking:' has been explicitly marked partial here
mac-screen.m:714:22: note: enclose 'convertPointToBacking:' in an @available check to silence this warning
mac-screen.m:740:23: warning: 'convertPointFromBacking:' is only available on macOS 10_14 or newer [-Wunguarded-availability-new]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:446:1: note: 'convertPointFromBacking:' has been explicitly marked partial here
mac-screen.m:740:23: note: enclose 'convertPointFromBacking:' in an @available check to silence this warning
The affected methods are invoked in the setmouse and sendmouse methods respectively.
I also had a look at the git commit history for src/cmd/devdraw and noticed that over the last 3-4 years there have been quite a few changes made with regards to macOS support.
I would appreciate some feedback on these findings.