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

Driver should accept -serialize-diagnostics-path for the interpret mode

    XMLWordPrintable

    Details

      Description

      The swift driver emits an error if you try to use -serialize-diagnostic option in the interpret mode. This makes sense because there is no place for it get the path of the diagnostic file (since there is no output file map). It could accept a -serialize-diagnostics-path flag to allow writing serializing diagnostics in this mode. This is required for XPM when parsing Package.swift manifest files.

      $ swift -serialize-diagnostics test.swift
      <unknown>:0: error: option '-serialize-diagnostics' is not supported by 'swift'; did you mean to use 'swiftc'?
      

        Attachments

          Activity

            People

            • Assignee:
              dingobye Ding Ye
              Reporter:
              jrose Jordan Rose
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: