Skip to content

Merge pull request #17008 from davidungar/rdar-40712614-removing-batch-mode-remark #17132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions include/swift/AST/DiagnosticsDriver.def
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ WARNING(warn_emit_public_type_metadata_accessors_deprecated, none,
"the option '-emit-public-type-metadata-accessors' is no longer "
"needed and is deprecated; consider removing it", ())

REMARK(remark_using_batch_mode,none, "using batch mode", ())

ERROR(cannot_find_migration_script, none,
"missing migration script from path '%0'", (StringRef))

Expand Down
5 changes: 0 additions & 5 deletions lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,11 +720,6 @@ Driver::buildCompilation(const ToolChain &TC,
const bool ContinueBuildingAfterErrors =
BatchMode || ArgList->hasArg(options::OPT_continue_building_after_errors);

// Issue a remark to facilitate recognizing the use of batch mode in the build
// log.
if (BatchMode)
Diags.diagnose(SourceLoc(), diag::remark_using_batch_mode);

if (Diags.hadAnyError())
return nullptr;

Expand Down
4 changes: 2 additions & 2 deletions test/Driver/batch_mode_print_jobs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//
// 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
// 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
// RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr1
// RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr2
// RUN: %FileCheck %s -allow-empty -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr1
// RUN: %FileCheck %s -allow-empty -check-prefix=NEGATIVE-CHECK-COMBINED <%t/stderr2
//
// CHECK-COMBINED: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift
// NEGATIVE-CHECK-COMBINED-NOT: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift
8 changes: 2 additions & 6 deletions test/Driver/batch_mode_remark.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Ensure that driver issues a remark iff in batch mode.
// Ensure that driver does not issue a remark iff in batch mode. (The remark has been removed.)
//
// RUN: %swiftc_driver -whole-module-optimization -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck %s
// RUN: %swiftc_driver %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
// RUN: %swiftc_driver -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
// RUN: %swiftc_driver -enable-batch-mode -disable-batch-mode %S/../Inputs/empty.swift -### 2>&1 >/dev/null | %FileCheck -allow-empty %s
//
// CHECK-NOT: remark: using batch mode
//
//
// RUN: %swiftc_driver -enable-batch-mode %S/../Inputs/empty.swift -### 2>&1 | %FileCheck %s -check-prefix USING-BATCH-MODE
//
// USING-BATCH-MODE: remark: using batch mode