File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1198,6 +1198,17 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
1198
1198
if (Opts.DetailedRecord ) {
1199
1199
subInvocation.getClangImporterOptions ().DetailedPreprocessingRecord = true ;
1200
1200
}
1201
+
1202
+ // SWIFT_ENABLE_TENSORFLOW
1203
+ // If the ClangModuleLoader is using an InMemoryOutputFileSystem, the
1204
+ // subinstance loader should use it as well, as files written to the file
1205
+ // system may not be visible to read, causing subinvocations to fail loading
1206
+ // dependencies.
1207
+ auto &Instance = clangImporter->getClangInstance ();
1208
+ if (Instance.getInMemoryOutputFileSystem ()) {
1209
+ subInvocation.getClangImporterOptions ().InMemoryOutputFileSystem =
1210
+ Instance.getInMemoryOutputFileSystem ();
1211
+ }
1201
1212
}
1202
1213
1203
1214
// Tell the subinvocation to serialize dependency hashes if asked to do so.
You can’t perform that action at this time.
0 commit comments