Batch mode driver remark

This commit is contained in:
David Ungar
2018-05-13 12:20:15 -07:00
parent b6e637e03d
commit 83c0d77c1f
3 changed files with 23 additions and 0 deletions

View File

@@ -716,6 +716,11 @@ 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;