Skip to content
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

Merged
merged 2 commits into from Sep 5, 2023
Merged

Conversation

kabiroberai
Copy link
Contributor

@kabiroberai kabiroberai commented Aug 16, 2023

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 the toolset.linker.path option in SE-0387.

See Also

Downstream: apple/swift-driver#1416, apple/swift-package-manager#6719.

@MaxDesiatov
Copy link
Member

@swift-ci test

@MaxDesiatov
Copy link
Member

@swift-ci build toolchain

@kabiroberai
Copy link
Contributor Author

@artemcm would be great if we could kick off CI here + in the swift-driver PR

@artemcm
Copy link
Contributor

artemcm commented Aug 16, 2023

@swift-ci test

@MaxDesiatov
Copy link
Member

@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=">,
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

MaxDesiatov pushed a commit to apple/swift-driver that referenced this pull request Sep 5, 2023
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: apple/swift#67956.
Downstream: apple/swift-package-manager#6719.
@MaxDesiatov MaxDesiatov merged commit a7ff6e9 into apple:main Sep 5, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants