Propagate sysroot to module loader subinvocation

To fix the Android build issue https://github.com/swiftlang/swift/issues/79839
This commit is contained in:
Hiroshi Yamauchi
2025-03-13 16:25:44 -07:00
parent cc145482de
commit 1a3a6e1c66
7 changed files with 29 additions and 9 deletions

View File

@@ -702,6 +702,7 @@ public:
std::error_code runInSubContext(StringRef moduleName,
StringRef interfacePath,
StringRef sdkPath,
std::optional<StringRef> sysroot,
StringRef outputPath,
SourceLoc diagLoc,
llvm::function_ref<std::error_code(ASTContext&, ModuleDecl*,
@@ -710,6 +711,7 @@ public:
std::error_code runInSubCompilerInstance(StringRef moduleName,
StringRef interfacePath,
StringRef sdkPath,
std::optional<StringRef> sysroot,
StringRef outputPath,
SourceLoc diagLoc,
bool silenceErrors,