forked from OSchip/llvm-project
[LinkerWrapper] Do not consume `--verbose` from the linker
Summary: Linkers use `--verbose` to let users investigate search libraries among other things. The linker wrapper was incorrectly not forwarding this to the linker job. This patch simply renames this so users can still see verbose messages from the linker if it was passed.
This commit is contained in:
parent
79a5ff45cb
commit
e27026cce1
|
@ -8439,7 +8439,7 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back(
|
||||
Args.MakeArgString("--host-triple=" + TheTriple.getTriple()));
|
||||
if (Args.hasArg(options::OPT_v))
|
||||
CmdArgs.push_back("--verbose");
|
||||
CmdArgs.push_back("--wrapper-verbose");
|
||||
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_g_Group)) {
|
||||
if (!A->getOption().matches(options::OPT_g0))
|
||||
|
|
|
@ -31,7 +31,7 @@ def device_linker_args_EQ : Joined<["--"], "device-linker=">,
|
|||
def dry_run : Flag<["--"], "dry-run">,
|
||||
Flags<[WrapperOnlyOption]>,
|
||||
HelpText<"Print program arguments without running">;
|
||||
def verbose : Flag<["--"], "verbose">,
|
||||
def verbose : Flag<["--"], "wrapper-verbose">,
|
||||
Flags<[WrapperOnlyOption]>, HelpText<"Verbose output from tools">;
|
||||
def embed_bitcode : Flag<["--"], "embed-bitcode">,
|
||||
Flags<[WrapperOnlyOption]>, HelpText<"Embed linked bitcode in the module">;
|
||||
|
|
Loading…
Reference in New Issue