Skip to content

Commit 6bbb9f0

Browse files
committed
[Sema] Only look for PrivateFrameworks on Darwin
1 parent f1f015c commit 6bbb9f0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: lib/AST/Module.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,8 @@ ModuleLibraryLevelRequest::evaluate(Evaluator &evaluator,
22592259

22602260
/// Is \p modulePath from System/Library/PrivateFrameworks/?
22612261
auto fromPrivateFrameworks = [&](StringRef modulePath) -> bool {
2262+
if (!ctx.LangOpts.Target.isOSDarwin()) return false;
2263+
22622264
namespace path = llvm::sys::path;
22632265
SmallString<128> scratch;
22642266
scratch = ctx.SearchPathOpts.SDKPath;

Diff for: test/Sema/implementation-only-import-suggestion.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %empty-directory(%t)
2+
// REQUIRES: VENDOR=apple
23

34
/// Expect warnings when building a public client.
45
// RUN: %target-swift-frontend -sdk %S/Inputs/public-private-sdk -typecheck -module-cache-path %t %s \

0 commit comments

Comments
 (0)