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

Provide a helpful diagnostic when a -D flag starts with a redundant -D

    XMLWordPrintable

    Details

      Description

      Xcode (and possibly other IDEs) provide a UI over -D flags where you provide the flag name and -D is prepended for you. Users might reasonably add a redundant -D themselves, leading to the invalid flag `-D-DFOO` getting passed into the compiler. The driver could detect this and raise a specific error message alerting the user to their mistake.

        Attachments

          Activity

            People

            Assignee:
            Nonchalant Takeshi Ihara
            Reporter:
            jckarter Joe Groff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: