forked from OSchip/llvm-project
forward -fno-color-diagnostics to clang-cc.
llvm-svn: 72856
This commit is contained in:
parent
c91b6e0ff8
commit
a1581e1a7a
|
@ -364,6 +364,7 @@ OPTION("-fblocks", fblocks, Flag, f_Group, INVALID, "", 0, 0, 0)
|
|||
OPTION("-fbootclasspath=", fbootclasspath_EQ, Joined, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fbuiltin", fbuiltin, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fclasspath=", fclasspath_EQ, Joined, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fcolor-diagnostics", fcolor_diagnostics, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fcommon", fcommon, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fcompile-resource=", fcompile_resource_EQ, Joined, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fconstant-cfstrings", fconstant_cfstrings, Flag, clang_ignored_f_Group, INVALID, "", 0, 0, 0)
|
||||
|
@ -402,6 +403,7 @@ OPTION("-fno-asynchronous-unwind-tables", fno_asynchronous_unwind_tables, Flag,
|
|||
OPTION("-fno-blocks", fno_blocks, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-builtin", fno_builtin, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-caret-diagnostics", fno_caret_diagnostics, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-color-diagnostics", fno_color_diagnostics, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-common", fno_common, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-constant-cfstrings", fno_constant_cfstrings, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
OPTION("-fno-diagnostics-fixit-info", fno_diagnostics_fixit_info, Flag, f_Group, INVALID, "", 0, 0, 0)
|
||||
|
|
|
@ -539,6 +539,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (Args.hasFlag(options::OPT_fdiagnostics_show_option,
|
||||
options::OPT_fno_diagnostics_show_option))
|
||||
CmdArgs.push_back("-fdiagnostics-show-option");
|
||||
if (!Args.hasFlag(options::OPT_fcolor_diagnostics,
|
||||
options::OPT_fno_color_diagnostics))
|
||||
CmdArgs.push_back("-fno-color-diagnostics");
|
||||
|
||||
// -fdollars-in-identifiers default varies depending on platform and
|
||||
// language; only pass if specified.
|
||||
|
|
|
@ -329,7 +329,7 @@ MessageLength("fmessage-length",
|
|||
llvm::cl::value_desc("N"));
|
||||
|
||||
static llvm::cl::opt<bool>
|
||||
NoColorDiagnostic("fno-color-diagnostic",
|
||||
NoColorDiagnostic("fno-color-diagnostics",
|
||||
llvm::cl::desc("Don't use colors when showing diagnostics "
|
||||
"(automatically turned off if output is not a "
|
||||
"terminal)."));
|
||||
|
|
Loading…
Reference in New Issue