-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ld-path driver option #67956
Add ld-path driver option #67956
Conversation
@swift-ci test |
@swift-ci build toolchain |
@artemcm would be great if we could kick off CI here + in the swift-driver PR |
@swift-ci test |
@swift-ci build toolchain |
HelpText<"Specifies the linker to be used">; | ||
HelpText<"Specifies the flavor of the linker to be used">; | ||
|
||
def ld_path : Joined<["--"], "ld-path=">, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the --
form rather than -
form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to match the spelling in Clang, which also simplifies forwarding the option; though I don't have a strong preference so I can change this to a single dash if you'd prefer.
This PR introduces an `--ld-path` option, which is forwarded to the Clang linker-driver option with the same name. This change is required to support the `toolset.linker.path` option in [SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md). ## See also Upstream: swiftlang/swift#67956. Downstream: swiftlang/swift-package-manager#6719.
This PR defines an
--ld-path
option for the Swift Driver, which is forwarded to the Clang linker-driver option with the same name. This change is required to support thetoolset.linker.path
option in SE-0387.See Also
Downstream: swiftlang/swift-driver#1416, swiftlang/swift-package-manager#6719.