[SR-5733] swiftc (3.0) incorrectly passes '-F' arguments to the linker #48303
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
legacy driver
Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Environment
Swift 3.0 built locally.
Additional Detail from JIRA
md5: d6d775e1d6b65aa71aba387f7110f0b6
Issue 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
The text was updated successfully, but these errors were encountered: