-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ModuleInterface] Look for a prebuilt module by full target name #24402
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
[ModuleInterface] Look for a prebuilt module by full target name #24402
Conversation
@swift-ci Please smoke test |
742928c
to
87d8596
Compare
@swift-ci Please smoke test |
} else { | ||
// Hack: deal with prebuilds of modules that still use the target-based | ||
// names. This code is duplicated from above but there doesn't seem to | ||
// be a great way to factor it out due to the early return. |
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.
Would
if (!path)
path = computeFallbackPrebuiltModulePath(scratch)
not work?
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.
…
Yes, it would. I wrote this against a version that didn't check fs::exists
when computing the path, and then hastily revised it once I saw that that got in. I'll change it to that.
87d8596
to
2818e36
Compare
@swift-ci Please smoke test |
Although the default cache location separates by platform, a /combined/ cache is still an interesting idea, and in that case we need to use the full platform names.
2818e36
to
b9d59bd
Compare
@swift-ci Please smoke test |
…ftlang#24402) Although the default cache location separates by platform, a /combined/ cache is still an interesting idea, and in that case we need to use the full platform names. (cherry picked from commit 3d16557)
…ftlang#24402) Although the default cache location separates by platform, a /combined/ cache is still an interesting idea, and in that case we need to use the full platform names. (cherry picked from commit 3d16557)
Although the default cache location separates by platform, a combined cache is still an interesting idea, and in that case we need to use the full platform names.
rdar://problem/50371801