Skip to content

[5.10] Add ld-path-driver-option to features.json #69587

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
Nov 4, 2023

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Nov 1, 2023

Dependency of swiftlang/swift-package-manager#7021.

Cherry-pick of #69586.

The -ld-path option was introduced on main in swiftlang/swift-driver#1442 and 5.10 in swiftlang/swift-driver#1442. SwiftPM needs to detect this flag to pass options to the driver correctly, and it's suitable to do this via feature.json instead of checking for the compiler version via other means.

Partially resolves rdar://117049947.

The `-ld-path` option was introduced on `main` in swiftlang/swift-driver#1442 and 5.10 in swiftlang/swift-driver#1442. SwiftPM needs to detect this flag to pass options to the driver correctly, and it's suitable to do this via `feature.json` instead of checking for the compiler version via other means.
@MaxDesiatov MaxDesiatov added driver options Area → compiler → legacy driver: driver options swift 5.10 labels Nov 1, 2023
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner November 1, 2023 22:06
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title Add ld-path-driver-option to features.json [5.10] Add ld-path-driver-option to features.json Nov 1, 2023
@MaxDesiatov MaxDesiatov merged commit 097554b into release/5.10 Nov 4, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/add-ld-path-feature-5.10 branch November 4, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver options Area → compiler → legacy driver: driver options swift 5.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants