File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,10 @@ void ClangImporter::recordModuleDependencies(
260260 // be found via search paths. Passing these headers as explicit inputs can
261261 // be quite challenging.
262262 for (auto &path: Impl.SwiftContext .SearchPathOpts .ImportSearchPaths ) {
263- swiftArgs.push_back (" -I" );
264- swiftArgs.push_back (path);
263+ addClangArg (" -I" + path);
265264 }
266265 for (auto &path: Impl.SwiftContext .SearchPathOpts .FrameworkSearchPaths ) {
267- swiftArgs.push_back (path.IsSystem ? " -Fsystem" : " -F" );
268- swiftArgs.push_back (path.Path );
266+ addClangArg ((path.IsSystem ? " -Fsystem" : " -F" ) + path.Path );
269267 }
270268
271269 // Swift frontend option for input file path (Foo.modulemap).
Original file line number Diff line number Diff line change 2828// CHECK-PCM-NEXT: },
2929// CHECK-PCM-NEXT: {
3030// CHECK-PCM-NEXT: "modulePath": "F.pcm",
31- // CHECK-PCM: "-I"
31+ // CHECK-PCM: "-I
3232
3333// CHECK-SWIFT: {
3434// CHECK-SWIFT-NEXT: "mainModuleName": "F",
You can’t perform that action at this time.
0 commit comments