Skip to content

Commit 643adf5

Browse files
authored
Merge pull request #16074 from benlangmuir/comment
Add a comment explaining a test for -disable-batch-mode -index-file
2 parents 766acd4 + e727abe commit 643adf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Driver/batch_mode_with_WMO_or_index.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
// RUN: %FileCheck -check-prefix CHECK-INDEX %s <%t/stderr_batch_index
1414
// CHECK-INDEX: warning: ignoring '-enable-batch-mode' because '-index-file' was also specified
1515
//
16+
// The following test is verifying that -disable-batch-mode overrides an earlier
17+
// -enable-batch-mode and silences the warning about mixing batch mode with
18+
// -index-file. Tools that take an existing command line and add -index-file can
19+
// thus add -disable-batch-mode without having to otherwise interpret the
20+
// arguments.
21+
//
1622
// RUN: %swiftc_driver -disable-batch-mode -index-file %S/../Inputs/empty.swift -### 2>%t/stderr_nobatch_index | %FileCheck %s
1723
// RUN: %swiftc_driver -enable-batch-mode -index-file %S/../Inputs/empty.swift -disable-batch-mode -### 2>%t/stderr_batch_nobatch_index | %FileCheck %s
1824
// RUN: %FileCheck -allow-empty -check-prefix CHECK-INDEX-DISABLED %s <%t/stderr_nobatch_index

0 commit comments

Comments
 (0)