Skip to content

Commit 14ea94a

Browse files
author
David Ungar
authored
Merge pull request #17008 from davidungar/rdar-40712614-removing-batch-mode-remark
[Batch mode] [rdar://40712614 ] Remove “using batch mode” remark.
2 parents 5e2d66a + be32ac4 commit 14ea94a

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

include/swift/AST/DiagnosticsDriver.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ WARNING(warn_emit_public_type_metadata_accessors_deprecated, none,
159159
"the option '-emit-public-type-metadata-accessors' is no longer "
160160
"needed and is deprecated; consider removing it", ())
161161

162-
REMARK(remark_using_batch_mode,none, "using batch mode", ())
163-
164162
ERROR(cannot_find_migration_script, none,
165163
"missing migration script from path '%0'", (StringRef))
166164

lib/Driver/Driver.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,6 @@ Driver::buildCompilation(const ToolChain &TC,
739739
const bool ContinueBuildingAfterErrors =
740740
BatchMode || ArgList->hasArg(options::OPT_continue_building_after_errors);
741741

742-
// Issue a remark to facilitate recognizing the use of batch mode in the build
743-
// log.
744-
if (BatchMode)
745-
Diags.diagnose(SourceLoc(), diag::remark_using_batch_mode);
746-
747742
if (Diags.hadAnyError())
748743
return nullptr;
749744

test/Driver/batch_mode_print_jobs.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
//
1313
// RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -driver-print-jobs 2>%t/stderr1 | %FileCheck %s -check-prefix=CHECK-COMBINED
1414
// RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -### 2>%t/stderr2 | %FileCheck %s -check-prefix=CHECK-COMBINED
15-
// RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr1
16-
// RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr2
15+
// RUN: %FileCheck %s -allow-empty -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr1
16+
// RUN: %FileCheck %s -allow-empty -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr2
1717
//
1818
// CHECK-COMBINED: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift
1919
// NEGATIVE-CHECK-COMBINED-NOT: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift

test/Driver/batch_mode_remark.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
// Ensure that driver issues a remark iff in batch mode.
1+
// Ensure that driver does not issue a remark iff in batch mode. (The remark has been removed.)
22
//
33
// RUN: %swiftc_driver -whole-module-optimization -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck %s
44
// RUN: %swiftc_driver %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
5+
// RUN: %swiftc_driver -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
56
// RUN: %swiftc_driver -enable-batch-mode -disable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
67
//
78
// CHECK-NOT: remark: using batch mode
8-
//
9-
//
10-
// RUN: %swiftc_driver -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 | %FileCheck %s -check-prefix USING-BATCH-MODE
11-
//
12-
// USING-BATCH-MODE: remark: using batch mode

0 commit comments

Comments
 (0)