-
Notifications
You must be signed in to change notification settings - Fork 199
Only pass a versioned prebuilt-modules for Mac Catalyst if it exists. #1695
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
Only pass a versioned prebuilt-modules for Mac Catalyst if it exists. #1695
Conversation
@swift-ci please test |
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.
Could you please add a test that creates a dummy directory for this and causes the driver to exercise this logic?
For sure! Looks like I have a macOS-only test failure to fix anyways :)
|
Some clients still have unversioned prebuilt modules, but SwiftDriver assumed that the versioned path would always exist for macOS (at least for the purposes of passing it when compiling for Mac Catalyst). This change duplicates some logic from the Swift frontend to check for the existence of the versioned macOS prebuilt modules directory before passing it, optionally stripping off trailing `.0` version components. This change also updates the driver so that it passes a prebuilt modules directory relative to the resource directory rather than relative to the compiler binary, also matching the Swift frontend's behavior. This addresses <rdar://problem/136047054>.
2159196
to
b1573ef
Compare
@swift-ci please test |
@artemcm I pushed an update to the existing test, and made a slight change in behavior -- it now looks relative to the resource directory rather than relative to the Swift compiler executable, which IIRC matches the frontend's behavior. |
@swift-ci please test Windows platform |
Some clients still have unversioned prebuilt modules, but SwiftDriver assumed that the versioned path would always exist for macOS (at least for the purposes of passing it when compiling for Mac Catalyst).
This change duplicates some logic from the Swift frontend to check for the existence of the versioned macOS prebuilt modules directory before passing it, optionally stripping off trailing
.0
version components.This addresses rdar://problem/136047054.