Uploaded image for project: 'Swift'
  1. Swift
  2. SR-8849

swiftc should have flag to print supported swift versions in a machine-readable fashion

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      Description

      The swiftc tool should have a compiler flag that prints the supported Swift versions (suitable for passing to -swift-version) in a stable machine-readable format. AFAICT right now the only way to list all supported versions is to pass an invalid major version and read the error message (which isn't a stable machine-readable format, it's a human-readable string).

      The use-case here is automated tooling that needs to select among a set of supported Swift versions to specify (e.g. CocoaPods generating an xcodeproj).

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lily Lily Ballard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: