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

DarwinToolChain should explicitly reject -static-stdlib

    XMLWordPrintable

    Details

      Description

      We no longer support the -static-stdlib flag on Darwin, so we should reject attempts to use that flag on Darwin builds and remove support for it from toolchains::Darwin.

      Doing this properly will require us to add a way for the ToolChain subclass to examine the arguments during validateArgs() so that Darwin can diagnose an error if it sees OPT_static_stdlib. After that, toolchains::Darwin::constructInvocation(StaticLinkJobAction) should be rewritten to assume OPT_static_stdlib is false, and its sibling methods should be audited to see if they should change too. This shouldn't be very difficult, but it's not trivial enough for me to do right away.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brentdax Brent Royal-Gordon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: