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(
260
260
// be found via search paths. Passing these headers as explicit inputs can
261
261
// be quite challenging.
262
262
for (auto &path: Impl.SwiftContext .SearchPathOpts .ImportSearchPaths ) {
263
- swiftArgs.push_back (" -I" );
264
- swiftArgs.push_back (path);
263
+ addClangArg (" -I" + path);
265
264
}
266
265
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 );
269
267
}
270
268
271
269
// Swift frontend option for input file path (Foo.modulemap).
Original file line number Diff line number Diff line change 28
28
// CHECK-PCM-NEXT: },
29
29
// CHECK-PCM-NEXT: {
30
30
// CHECK-PCM-NEXT: "modulePath": "F.pcm",
31
- // CHECK-PCM: "-I"
31
+ // CHECK-PCM: "-I
32
32
33
33
// CHECK-SWIFT: {
34
34
// CHECK-SWIFT-NEXT: "mainModuleName": "F",
You can’t perform that action at this time.
0 commit comments