Skip to content

Make --ld-path option consistently use single dash #1441

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

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

MaxDesiatov
Copy link
Contributor

The vast majority of other options on Swift Driver already use a single dash.

The vast majority of other options on Swift Driver already use a single dash.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM; do we have the corresponding change to apple/swift?

kabiroberai added a commit to kabiroberai/swift-package-manager that referenced this pull request Sep 14, 2023
@MaxDesiatov
Copy link
Contributor Author

do we have the corresponding change to apple/swift?

submitted as swiftlang/swift#68495

@MaxDesiatov MaxDesiatov merged commit e48171a into main Sep 15, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/ld-path-dash branch September 15, 2023 14:08
MaxDesiatov pushed a commit to swiftlang/swift-package-manager that referenced this pull request Sep 19, 2023
This PR implements support for the `linker.path` field in the Swift SDK toolset spec.

Depends on swiftlang/swift#68495 and swiftlang/swift-driver#1441.

### Motivation:

This field was previously parsed but not respected.

### Modifications:

Add `-ld-path=\(linker.path)` to the toolchain's Swift flags if a linker path override is supplied

### Result:

The linker path is now respected.
MaxDesiatov pushed a commit that referenced this pull request Sep 26, 2023
The Clang linker driver spells this as `--ld-path` so we can't forward the argument wholesale anymore, since as of #1441 we spell it `-ld-path` in the Swift Driver.
MaxDesiatov pushed a commit to swiftlang/swift-package-manager that referenced this pull request Sep 28, 2023
This PR implements support for the `linker.path` field in the Swift SDK toolset spec.

Depends on swiftlang/swift#68495 and swiftlang/swift-driver#1441.

### Motivation:

This field was previously parsed but not respected.

### Modifications:

Add `-ld-path=\(linker.path)` to the toolchain's Swift flags if a linker path override is supplied

### Result:

The linker path is now respected.
MaxDesiatov pushed a commit to swiftlang/swift-package-manager that referenced this pull request Sep 28, 2023
This PR implements support for the `linker.path` field in the Swift SDK toolset spec.

Depends on swiftlang/swift#68495 and swiftlang/swift-driver#1441.

### Motivation:

This field was previously parsed but not respected.

### Modifications:

Add `-ld-path=\(linker.path)` to the toolchain's Swift flags if a linker path override is supplied

### Result:

The linker path is now respected.
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.

2 participants