mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This hardcodes the list of platforms into unique identifiers, which has tradeoffs to using strings. The reality is that various logic in the compiler needs to be present to identify a given platform, so hardcoding this list for now is ok. We can evaluate in the future. This change is motivated by some needed cleanup, supporting App Extensions @availability, and unifying build configurations with the platform names for @availability. As part of this change, it introduces some slightly better parser recovery for bad @availability attributes. Moreover, the 'macosx' platform is renamed to 'osx'. We will need to handle this mapping in the Clang Importer, but this is the right thing to do. Swift SVN r17767
33 KiB
33 KiB