Changes between Version 1 and Version 2 of Ticket #65354, comment 16


Ignore:
Timestamp:
Jun 20, 2022, 4:12:23 PM (23 months ago)
Author:
kencu (Ken)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #65354, comment 16

    v1 v2  
    2525So 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}}}.
    2626
    27 We (MacPorts) wants 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.
     27We (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.
    2828
    2929So 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.