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

swiftc (3.0) incorrectly passes '-F' arguments to the linker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Component/s: Compiler
    • Labels:
    • Environment:

      Swift 3.0 built locally.

       

      Description

      Invoking swiftc with "-F /path/to/foo.framework" gets passed to the linker as the same thing. It should get passed to the linker as "-F/path/to" since ld wants it in that format.

      This can be worked around by adding in both "-F /path/to/foo.framework" and "-Xlinker -F/path/to".

      Example arguments:

      -emit-library -target x86_64-apple-ios10.3 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -I /var/folders/jq/jq6r64mn1wvg18lp0bw71f780000gn/T/8f4d687f-7ac5-4d67-af47-eb8dc499c574 -I /Users/steveh/Projects/swiftdemo/lib/iphone/FinalProduct/x86_64 -L /Users/steveh/Projects/swiftdemo/lib/iphone/FinalProduct -F /Users/steveh/Projects/SimpleLib/someoutput/Debug-universal/SimpleLib.framework -L /Users/steveh/Projects/swiftdemo/bin/swift/lib/swift/iphonesimulator/ -lXamGlue -framework SimpleLib -v -emit-module -module-name XamWrapping SimpleLib-IdentityThing.swift

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              plinth666 Steve Hawley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: