-
Notifications
You must be signed in to change notification settings - Fork 1.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
Swift SDKs: fix toolset.linker.path
not passed to -ld-path
#7021
Conversation
This reverts commit 57d0a55 and PR #6939. Now that swiftlang/swift-driver#1447 and its 5.10 counterpart swiftlang/swift-driver#1454 were merged, we can reapply the fix for Swift SDKs linker metadata not being handled.
@swift-ci test |
So we're saying we only support 5.10 and up going forward? Can we add an explicit error if someone is using a 5.10 SwiftPM with an older compiler? |
@neonichu what would be the best way to get a compiler version? I tried to reuse |
I wonder if we can just defer until the build? It's not 100% ideal but probably the best way to avoid code duplication. E.g. I could see that we put a minimum required version into the SwiftSDK or toolset types and basically check them against the actual version early in the build. This would of course mean that we're slightly delaying such errors, but I think that's acceptable. |
We could also have a reason string for the requirement, so we would still be able to emit a good diagnostic. |
@MaxDesiatov Recently toolchain ships |
This sounds good to me, @neonichu WDYT? |
Sounds good to me, I think that's the |
Dependency of swiftlang/swift-package-manager#7021. The `-ld-path` option was introduced on `main` in swiftlang/swift-driver#1442 and `release/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.
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.
@swift-ci test |
@swift-ci test |
@swift-ci test windows |
This reverts commit 57d0a55 and PR #6939.
Now that swiftlang/swift-driver#1447 and its 5.10 counterpart swiftlang/swift-driver#1454 were merged, we can reapply the fix for Swift SDKs linker metadata not being handled.
Resolves rdar://117049947.