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

@@ -356,7 +356,7 @@ bool ImplicitModuleInterfaceBuilder::buildSwiftModuleInternal(
}
SubError = (bool)subASTDelegate.runInSubCompilerInstance(
moduleName, interfacePath, sdkPath, OutPath, diagnosticLoc,
moduleName, interfacePath, sdkPath, sysroot, OutPath, diagnosticLoc,
silenceInterfaceDiagnostics,
[&](SubCompilerInstanceInfo &info) {
auto EBuilder = ExplicitModuleInterfaceBuilder(