Closed alexreinking closed 1 week ago
Done! As I'm thinking about this, we should probably do something similar for iOS
@steven-johnson -- I changed the approach to use the LLVM-computed minimum compatible version (e.g. 11 on macOS/ARM). This should generalize to iOS, watchOS, tvOS, etc.
I think this may have injected a link error in google when building for the iOS Simulator (which is not considered macOS by the linker), but I don't have time to diagnose before leaving for vacation -- hoping @vksnk can look at it next week
This gives LLVM enough information to generate a "platform load-command" in the MachO object file.
Frustratingly, there is not a simple API that sets this directly; it must be passed in the os name.
Fixes #7941