File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ ModuleDependencyVector ClangImporter::bridgeClangModuleDependencies(
239
239
// invocation, not swift invocation.
240
240
depsInvocation.getFrontendOpts ().ModuleCacheKeys .clear ();
241
241
depsInvocation.getFrontendOpts ().PathPrefixMappings .clear ();
242
+ depsInvocation.getFrontendOpts ().OutputFile .clear ();
242
243
243
244
// FIXME: workaround for rdar://105684525: find the -ivfsoverlay option
244
245
// from clang scanner and pass to swift.
@@ -351,7 +352,7 @@ void ClangImporter::recordBridgingHeaderOptions(
351
352
clang::frontend::ActionKind::GeneratePCH;
352
353
depsInvocation.getFrontendOpts ().ModuleCacheKeys .clear ();
353
354
depsInvocation.getFrontendOpts ().PathPrefixMappings .clear ();
354
- depsInvocation.getFrontendOpts ().OutputFile = " " ;
355
+ depsInvocation.getFrontendOpts ().OutputFile . clear () ;
355
356
356
357
llvm::BumpPtrAllocator allocator;
357
358
llvm::StringSaver saver (allocator);
Original file line number Diff line number Diff line change 32
32
// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json clang:F clangIncludeTree > %t/F_tree.casid
33
33
// RUN: clang-cas-test --cas %t/cas --print-include-tree @%t/F_tree.casid | %FileCheck %s -check-prefix INCLUDE_TREE_F
34
34
35
+ // RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json clang:F commandLine > %t/F.cmd
36
+ // RUN: %FileCheck %s -check-prefix F_CMD -input-file=%t/F.cmd
37
+ // F_CMD: "-Xcc"
38
+ // F_CMD-NOT: "-o"
39
+
35
40
// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json deps commandLine > %t/deps.cmd
36
41
// RUN: %FileCheck %s -check-prefix MAIN_CMD -input-file=%t/deps.cmd
37
42
You can’t perform that action at this time.
0 commit comments