Changes between Version 1 and Version 2 of Ticket #65354, comment 16
- Timestamp:
- Jun 20, 2022, 4:12:23 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #65354, comment 16
v1 v2 25 25 So when you try to compile code that stumbles across the newer features, even if they are guarded by an @availability block, the code will not compile. This is what you stumbled across with {{{safeAreaInsets}}}. 26 26 27 We (MacPorts) want sto get this code to compile against the older SDK. To do that, we need to completely block out the part that the older SDK doesn't know about, and skip all of Apple's @availability tricks.27 We (MacPorts) want to get this code to compile against the older SDK. To do that, we need to completely block out the part that the older SDK doesn't know about, and skip all of Apple's @availability tricks. 28 28 29 29 So we want to test the version of the SDK we are building against, and not try to compile that code if the SDK is too old to manage it. The system we are running on will taken care of by the @available block, if we can compile it.