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

Produce a better error message if Swift is run on a system without clang++

    XMLWordPrintable

    Details

      Description

      Swift on Linux (and other non-Apple platforms) calls clang++ to perform linking; if it's not found, we used to get this lousy error message:

      <unknown>:0: error: link command failed with exit code 127 (use -v to see invocation)
      

      We should do better. (It's possible we already do do better; I just don't have access to a Linux system without clang++ installed at the moment. If you have such a system, you can help out with this bug by downloading Swift from https://swift.org/download/ and seeing what echo 'print("hello")' | swiftc - produces.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jrose Jordan Rose
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: