mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Only look for PrivateFrameworks on Darwin
This commit is contained in:
@@ -2259,6 +2259,8 @@ ModuleLibraryLevelRequest::evaluate(Evaluator &evaluator,
|
||||
|
||||
/// Is \p modulePath from System/Library/PrivateFrameworks/?
|
||||
auto fromPrivateFrameworks = [&](StringRef modulePath) -> bool {
|
||||
if (!ctx.LangOpts.Target.isOSDarwin()) return false;
|
||||
|
||||
namespace path = llvm::sys::path;
|
||||
SmallString<128> scratch;
|
||||
scratch = ctx.SearchPathOpts.SDKPath;
|
||||
|
||||
Reference in New Issue
Block a user